function onRemoved() {
console.log("removed");
}
function onError(error) {
console.error(error);
}
browser.browsingData.removeLocalStorage({}).then(onRemoved, onError);browsingData.removeLocalStorage() / notebook
browsingData.removeLocalStorage()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.