The bookmarks.remove() method removes a single bookmark or an empty bookmark folder.

This is an asynchronous function that returns a Promise.


var removingBookmark = browser.bookmarks.remove(
  id                 // string


A string specifying the ID of the bookmark or empty folder to remove.

Return value

A Promise that will be fulfilled with no arguments.

If the node corresponding to the id parameter can't be found or was a non-empty folder, the promise is rejected with an error message.


function onRemoved() {

function onRejected(error) {
  console.log(`An error: ${error}`);

var bookmarkId = "abcdefghijkl";

var removingBookmark = browser.bookmarks.remove(bookmarkId);
removingBookmark.then(onRemoved, onRejected);

Example extensions

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxOperaFirefox for Android
removeChrome Full support YesEdge Full support 15Firefox Full support 45Opera Full support YesFirefox Android No support No


Full support  
Full support
No support  
No support


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

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, irenesmith, wbamberg, Makyen, Sheppy
Last updated by: mdnwebdocs-bot,