URL: revokeObjectURL() static method
Note:This feature is available inWeb Workers,except forService Workers.
TherevokeObjectURL()
static method of theURL
interface
releases an existing object URL which was previously created by calling
URL.createObjectURL()
.
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.
Note:This method isnotavailable inService Workers,due to
issues with theBlob
interface's life cycle and the potential for leaks.
Syntax
js
URL.revokeObjectURL(objectURL)
Parameters
objectURL
-
A string representing an object URL that was previously created by calling
createObjectURL()
.
Return value
None (undefined
).
Examples
Specifications
Specification |
---|
File API #dfn-revokeObjectURL |
Browser compatibility
BCD tables only load in the browser