function onRemoved(context) {
if (!context) {
console.error("Context not found");
} else {
console.log(`Removed identity: ${context.cookieStoreId}.`);
}
}
function onError(e) {
console.error(e);
}
browser.contextualIdentities
.remove("firefox-container-1")
.then(onRemoved, onError);contextualIdentities.remove() / notebook
contextualIdentities.remove()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.