GeezerVison is showing developer.mozilla.org — URL: revokeObjectURL() static method - Web APIs | MDN
URL: revokeObjectURL() static method
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The revokeObjectURL() static method of the URL interface
releases an existing object URL which was previously created by calling
URL.createObjectURL().
For more information, see blob URLs.
Call this method when you've finished
using an object URL to let the browser know not to keep the reference to the file any
longer.
If the objectURL argument passed is not a currently-active object URL — for example if it is an invalid URL, non-object URL, or is already revoked — then calling this method does nothing.
Note:
This method is not available in Service Workers, due to
issues with the Blob interface's life cycle and the potential for leaks.
js
URL.revokeObjectURL(objectURL)