W3cubDocs

/Web APIs

USBDevice: forget() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The forget() method of the USBDevice interface returns a 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

forget()

Parameters

None.

Return value

A Promise which resolves with undefined once the device access permission is revoked.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
forget 101 101 No No 87 No No 101 No 70 No 19.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/forget