contextMenus.removeAll()

Removes all context menu items added by this extension.

Syntax

browser.contextMenus.removeAll(
  function() {...} // optional function
)

Parameters

callbackOptional
function. Called when removal is complete.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

This API is based on Chromium's chrome.contextMenus API. This documentation is derived from context_menus.json in the Chromium code.

Document Tags and Contributors

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