Programmatically uninstall browser extensions

592 Views Asked by At

With browsers ability to sync themselves, and reinstall extensions/BHOs. I want to know how would one programatically uninstall extensions/BHOs. I already have the old registry, and extension folder way, which no longer work.

I would like to do this with:

  • Firefox
  • Chrome
1

There are 1 best solutions below

3
On

You can use chrome.management.uninstall(string id, object options, function callback) for chrome and browser.management.uninstall for the firefox.

You only need pass an ID of extension to this method.