removeAsync

external fun removeAsync(): Promise<Void>(source)

The remove() method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.

MDN Reference