downloads.removeFile()

Remove a downloaded file.

Syntax

browser.downloads.removeFile(
  downloadId,      // integer
  function() {...} // optional function
)

Parameters

downloadId
integer.
callbackOptional
function.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?48.0Yes33
Firefox
Basic support48.0

Examples

Acknowledgements

This API is based on Chromium's chrome.downloads API.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,