Back to Content

MediaKeySession: remove() method

files/en-us/web/api/mediakeysession/remove/index.md

latest458 B
Original Source

{{APIRef("Encrypted Media Extensions")}}{{SecureContext_Header}}

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

Syntax

js-nolint
remove()

Parameters

None.

Return value

A {{jsxref('Promise')}} that resolves to {{jsxref("undefined")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}