How to Uninstall Apps or Software on Raspberry Pi

How to Uninstall Apps or Software on Raspberry Pi - Cover image

Summary

There are times when you might have felt your Raspberry Pi getting a bit sluggish or your microSD card running out of space. Over time, you might have installed a bunch of apps and software, some you end up using every day, others you forget about after a single try.

And let’s face it, sometimes you just want to tidy up your Raspberry Pi and free up space on Raspberry Pi to make room for new projects or keep things running smoothly.

This guide is here to help you remove software from Raspberry Pi OS, whether you’re a beginner or just need a quick refresher.

We’ll walk you through different ways to uninstall programs, from clicking around in the desktop to typing commands in the terminal. The goal is to make your Raspberry Pi experience cleaner, faster, and more enjoyable without any unnecessary clutter.Β 

How to Uninstall Apps or Software on Raspberry Pi - Cover image

Steps to Uninstall Apps or Software from Raspberry PiΒ 

There are two primary methods for uninstalling apps from Raspberry Pi boards: using the graphical interface and using the command line. Let’s look at both, so you can choose the method that suits you best.

1. Using the Graphical Interface (GUI)Β 

If you’re using Raspberry Pi OS with Desktop, you can uninstall programs on Raspberry Pi just like you would on a regular computerβ€”no coding required.

  • Find the Raspberry Menu: Click the Raspberry icon in the top-left corner of your screen.
  • Go to Preferences: From the menu, select Preferences.
  • Open Add/Remove Software: Click on Add/Remove Software. This tool works like an app store for your Raspberry Pi. It lists all the software you can add or remove.
Go to Preferences in Graphical Interface
  • Search for the App: Type the name of the app you want to remove in the search bar.
  • Remove the Package: When you find the app, right-click it and select Remove Package. Click Apply to confirm and enter your password if prompted. That’s it. The app is gone!
Remove the Package in Graphical Interface

This method is great if you’re not comfortable with the command line, but it does have some limitations. Sometimes, you might not find the exact app you’re looking for, especially if it was installed differently.Β 

2. Using the Command Line (Terminal)

If you prefer a bit more control, the terminal is your friend. Here’s how it works:

Open the Terminal: You can find the terminal icon on your desktop or press Ctrl+Alt+T to open it. It will look something like the image below.

Open the Terminal in Command Line
  • List of all Installed Packages: To see what’s installed, type:Β 
    dpkg –list
  • All the installed packages will be shown by running this command. Look for the name of the app you want to remove.
  • Remove the Package: To remove the software, use:Β 
    sudo apt remove package-name
  • Replace package-name with the actual name of the app you want to uninstall.
  • Remove Everything (Including Config Files): If you want to make sure all traces of the app are gone, use:Β 
    sudo apt purge package-name
  • This will uninstall the program and delete its configuration files too.
  • Clean Up: After removing apps, you can clear out leftover files with:Β 
    sudo apt autoremove
  • This removes any packages that were installed as dependencies but are no longer needed.
  • Clear the Cache: To free up memory, you can also clear the package cache:Β 
    sudo apt clean
  • This deletes downloaded package files that are no longer required

How Do I Delete Something on My Raspberry Pi?

Sometimes, you might want to delete something that isn’t an appβ€”like a file or folder. Here’s how you can do that:

  • Using the File Manager: Double-click the File Manager icon on your desktop. Navigate to the file or folder you want to delete, right-click it, and select Delete.
  • Using the Terminal: If you’re comfortable with the command line, you can delete files with:
    rm filename
  • To delete a folder and everything inside it:Β 
    rm -r foldername
  • Be careful with these commands, because deleted files can’t be easily recovered

Β 

Β 

Conclusion

Keeping your Raspberry Pi tidy doesn’t have to be complicated. Whether you prefer clicking around in the desktop or typing commands in the terminal, you now have the tools to remove software and free up space whenever you need to. Regular cleanup helps your Pi run faster, gives you more room for new projects, and keeps your system organized.

Components and Supplies

You may also like to read

Frequently Asked Questions

How do I know which apps are taking up the most space on my Raspberry Pi?

You can use the command dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n in the terminal to list installed packages by size. This helps you identify which apps to remove software to free up space.

Can I uninstall multiple programs at once? 

Yes, if you use the terminal, you can list multiple package names after sudo apt remove or sudo apt purge. For example: sudo apt remove package1 package2 package3. In Synaptic Package Manager, you can select multiple apps to remove at once.

What’s the difference between β€˜remove’ and β€˜purge’? 

The remove command uninstalls the app but leaves configuration files behind. The purge command removes the app and its configuration files, giving you a cleaner uninstall.

Is it safe to use β€˜autoremove’ and β€˜clean’ commands? 

Yes, sudo apt autoremove removes unused dependencies, and sudo apt clean clears the package cache. Both are safe and help free up memory without affecting your important files.

What if I accidentally delete something important? 

Always double-check before deleting files or apps, especially in the terminal. If you’re unsure, it’s best to ask in the Raspberry Pi community forums before proceeding. 

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.

Components and Supplies

You may also like to read