StorageAccessHandle: revokeObjectURL() method
Storage Access API
Storage Access API
> [!NOTE]
> See revokeObjectURL() to understand usage.
## Syntax
```js-nolint
revokeObjectURL(objectURL)
```
### Parameters
- `objectURL`
- : See revokeObjectURL().
### Return value
None (undefined).
### Exceptions
- `SecurityError` DomException
- : Thrown if access was not granted.
See revokeObjectURL()
## Examples
```js
document.requestStorageAccess({ revokeObjectURL: true }).then(
(handle) => {
console.log("revokeObjectURL access granted");
handle.revokeObjectURL(blob_url);
},
() => {
console.log("revokeObjectURL access denied");
},
);
```
> [!NOTE]
> See [Using the Storage Access API](/docs/Web/API/Storage_Access_API/Using) for a more complete example.
## Specifications
## Browser compatibility
## See also
- Document.requestStorageAccess()
- [Using the Storage Access API](/docs/Web/API/Storage_Access_API/Using)
Cite this
"StorageAccessHandle: revokeObjectURL() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/StorageAccessHandle/revokeObjectURL JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy