Back to Content

USBDevice: forget() method

files/en-us/web/api/usbdevice/forget/index.md

latest596 B
Original Source

{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}

The forget() method of the {{domxref("USBDevice")}} interface returns a {{jsxref("Promise")}} that resolves when all pending operations are aborted, all open interfaces are released, the device session has ended, and the permission is reset.

Syntax

js-nolint
forget()

Parameters

None.

Return value

A {{jsxref("Promise")}} which resolves with undefined once the device access permission is revoked.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}