Snap packages are used in Linux distributions to offer multiple options like installing, deploying, and removing software. Snap package is beneficial for developers to use the newest versions of apps on their Linux machine.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/1-6.jpg6029390a4ea57.jpg" data-lazy- height="930" src="data:image/svg xml,” width=”1500″>

Snap is a better alternative of apt. And many users prefer it for their system. Ubuntu and Canonical also consider it as one of the best installation repositories and package management tools for Linux. As per the consideration of advantages, Snap offers:

  • Snap apps work in the sandbox environment.
  • Snap repository has many applications from popular publishers such as Google, KDE, and Microsoft.
  • All snap packages are completely auto-updated
  • There is no additional installation required because dependencies are bundled in a snap package.

You can easily install and Use Ubuntu snap packages without having any trouble. Sometimes people want to remove a snap package, but they don’t know how to do it. So, if you are one of them, then please read our article to learn the easiest way to remove a snap package on Ubuntu(we are considering this Linux distro because it is the most commonly used operating system and the command line for removing a snap package is almost the same for every Linux distribution). However, before understanding the removal procedure of a snap package, let’s discuss some important information about snap packages.

What is Snap Package

Users can install the application in Linux using multiple methods, and source codes are one way to install different applications. In this case, “package” comes into the picture, so it is a software package created by developers after developing a program so that users can easily install it. That’s why .deb or Debian software packaging became popular, but it requires a little bit more effort for software installation. Therefore, the .snap package was created for the Ubuntu core system as it consists of all dependencies. These snap packages also have benefits compared to .deb dependency handling because anyone can easily use snap packages in their system.

How to Remove a Snap Package on Ubuntu

We will now cover the step-by-step procedure of removing a snap package easily, so let’s consider that you have OBS Studio from the system.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/2-5.jpg6029390ab8c1e.jpg" data-lazy- height="582" src="data:image/svg xml,” width=”868″>

First, open the Linux terminal and run the following command in it:

sudo snap remove obs-studio

The basic command line to remove a snap package is sudo snap remove . You have to put the name of a specific application instead of .


Once you execute the command successfully, the terminal will ask you to enter the [sudo] password you put for the installation, but if you don’t have any password, press Enter to process it.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/3-5.jpg6029390b30152.jpg" data-lazy- height="460" src="data:image/svg xml,” width=”702″>

After completion of this procedure, you will see that OBS studio gets uninstalled from the system. However, the folder of OBS is still present in the snap folder, so execute the following command to remove it:

sudo snap rm – r obs – studio

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/4-6.jpg" data-lazy- height="442" src="data:image/svg xml,” width=”699″>

As you can see in the image below, the command has removed the additional folder related to the uninstalled snap package.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/5-5.jpg6029390c1a76e.jpg" data-lazy- height="574" src="data:image/svg xml,” width=”847″>

Note: This procedure is appropriate for the older versions of Ubuntu, such as 18.04, 16.04, etc.

Conclusion

That’s it, and you are done, so this is how you can remove a snap package in Ubuntu easily. It is the most straightforward procedure for removing any snap package, and you can use it in the different versions of Ubuntu. We also mentioned complete details on snap packages and their benefits. However, we didn’t include the process of using a snap package because there is a comprehensive article on our website, so make sure to read it. This article also has a procedure to remove the additional folder after the uninstallation so that you don’t have to do it manually.

About the author

<img alt="Amit Sharma" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/amitsharma-150×150.png6029390c6b9ff.jpg" height="112" src="data:image/svg xml,” width=”112″>

Amit Sharma

I am a Linux enthusiast and love to work on Linux, and I have worked on Ubuntu, Bash script, etc. I completed my engineering in the previous year and worked for different websites in various fields such as Data Science, Linux on Windows, coding, tools, and software-related information, and technical issues support for both Windows and Linux.