revokeObjectURL

abstract fun revokeObjectURL(url: URL)

Revoke a previously-issued temporary URL reference to a File or Blob object.

From MDN: "The URL.revokeObjectURL() static method 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."

Parameters

url

URL which was previously created via createObjectURL, which should be revoked.

See also

to create a URL from a file or blob.