delete method

JSPromise<JSAny?> delete(
  1. JSAny nameOrOptions
)

@AvailableInWorkers("window_and_service")

The delete() method of the CookieStore interface deletes a cookie with the given name or options object. The delete() method expires the cookie by changing the date to one in the past.

Implementation

external JSPromise<JSAny?> delete(JSAny nameOrOptions);