Contents

delete(_:completionHandler:)

Deletes the specified cookie.

Declaration

func delete(_ cookie: HTTPCookie, completionHandler: (@MainActor @Sendable () -> Void)? = nil)
func deleteCookie(_ cookie: HTTPCookie) async

Parameters

  • cookie:

    The cookie to delete.

  • completionHandler:

    A completion handler block to execute asynchronously after the method successfully deletes the cookie. This block has no return value and no parameters.

See Also

Managing cookies