function onCleared() {
console.log("OK");
}
function onError(e) {
console.log(e);
}
let clearStorage = browser.storage.local.clear();
clearStorage.then(onCleared, onError);StorageArea.clear() / notebook
StorageArea.clear()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.