Milind Anantwar Milind Anantwar - 2 months ago 22
Javascript Question

Remove Chrome extension via code

I have created a Chrome application. When the user adds it to the Chrome browser, a form is opened as a part of the installation. I want to delete the added extension when the installation is not done correctly.

How do I trigger deletion of a Chrome extension?

Answer

An extension can remove itself by calling chrome.management.uninstallSelf();.

If your extension wants to remove another extension, declare the management permission in the manifest file and call chrome.management.uninstall('<id of other extension>');.

You cannot uninstall an extension from the command line any more as of Chrome 36.0.1960.0 (using --uninstall-extension, crbug 351294).

Comments