How to Remove Firefox With All Add-ons in Ubuntu?

Firefox is an extensible default web browser of Ubuntu. It is considered the fastest modern web browser because of its fastest downloading speed. In addition, it also supports additional add-ons to enhance its productivity. Sometimes firefox needs to uninstall to free up disk space when it becomes overloaded due to the installation of too many add-ons or the user wants to use a different web browser. 

Considering this importance, this guide pens down possible aspects to remove firefox with all add-ons like it never existed before:

First, have a look at the installed firefox web browser in the current Ubuntu system 22.04 that has following highlighted add-ons extensions:

Let’s see how the firefox web browser will remove with its all enabled add-ons. 

Method 1: Remove Firefox If Installed Using “apt”

An “apt(Advanced Packaging Tool)” is the default package manager of Ubuntu that comes with a bundle of software applications. It is mainly used to install. Update, upgrade and remove the applications: 

If firefox is installed using the “apt” package manager then it can be removed using the “purge(delete configuration files)”  and the “autoremove(delete cache and dependencies)” in this way:

$ sudo apt autoremove --purge firefox

The “firefox” has been completely removed along with its configuration files from Ubuntu.

Note: If the user only needs to uninstall only the “firefox” installation files then use the “remove” keyword and for removing only configuration files use “purge” with the “apt” command.

Method 2: Remove Firefox If Installed Using “snap”

If the firefox in your computer is installed from the snap store, it can only be removed through the snap command. To remove firefox completely using “snap”, use the “remove” keyword with it as a command:

$ sudo snap remove --purge firefox

Method 3: Remove Firefox If Installed Using “Official” Website

In most situations the user installs packages using their official website to get their latest release. If the user uses the firefox web browser installed using its official website, then it can also be removed easily.

Simple use the “rm(remove)” command followed by “-f(file)”, and “-r(recursively)” flags to delete its installed folder:

$ sudo rm -fr /opt/firefox

The firefox installed directory “/opt/firefox” has been completely removed, and there is no more in Ubuntu, as shown in the above image.

Method 4: Remove Firefox Using the “Uninstall” Option (GUI)

Ubuntu Software center supports the firefox web browser by default. It can also be uninstalled as per the requirements of the user. To perform this task, follow these steps:

Step 1: Open the Ubuntu Software Center

Navigate to the “Ubuntu Software Center” icon located in the left side dock panel and open it. Search for “Mozilla firefox” in the “Search” bar and click on the shown result:

Step 2: Uninstall Firefox Browser

Hit the “Uninstall” button in front of the “firefox” browser: 

Confirm the uninstallation process by hitting the “Uninstall” button again as shown in the image:

It requires the root user privileges as its “Password”. Enter the right “Password” and “Authenticate” it:

The progress bar shows that the uninstallation procedure will be completed in a few seconds:

Step 3: Verify the Firefox

It is verified that “firefox” has been completely removed from Ubuntu:

Conclusion

Ubuntu supports “apt” and “snap” packages managers to remove the firefox browser completely. The user can also use the “rm(remove)” command to remove the installed files of firefox. This task can also be performed using the “Uninstall” option in the graphical user interface. This guide has listed both the CLI and GUI method to remove firefox with all add-ons like it never existed in Ubuntu.