---
title: MediaKeySession.remove()
slug: Web/API/MediaKeySession/remove
tags:
  - API
  - EncryptedMediaExtensions
  - Experimental
  - MediaKeySession
  - Method
  - NeedsExample
  - Reference
  - remove
browser-compat: api.MediaKeySession.remove
---
{{APIRef("EncryptedMediaExtensions")}}

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

## Return value

A {{jsxref('Promise')}} that resolves to a boolean indicating whether the load succeeded or failed.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
