let id = "addon-id";
function onCanceled(error) {
console.log(`Canceled: ${error}`);
}
function onUninstalled() {
console.log("Uninstalled");
}
let uninstalling = browser.management.uninstall(id);
uninstalling.then(onUninstalled, onCanceled);management.uninstall() / notebook
management.uninstall()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.