2

Does flatpak have a uninstallation "purge" option like apt?

Purpose: to uninstall an app, and all config files.

2 Answers 2

2

When flatpak removes an app, it removes the entire sandbox directory so everything related to the app is removed. This doesn’t include home directory config files of course, but apt doesn’t do that either.

3
  • Thanks. By "home directory config files" do you mean those for the app, or for flatpak itself?
    – lonix
    Commented Apr 7, 2022 at 2:38
  • Files that would appear in ~/.config, ~/.cache, etc.
    – jsbillings
    Commented Apr 7, 2022 at 17:58
  • Then I assume that means user config is kept, but app config from /etc/flatpak (or wherever) is removed. Pity there's no purge option to blast away everything flatpak-related. I take your point about apt though.
    – lonix
    Commented Apr 8, 2022 at 2:50
1

Yes, I try it and it works, what you have to do in the command line(Bash) is:

  1. Type just
    flatpak list --app
    
  2. In the column "Application ID" look for the app you want to purge. Then type
    flatpak uninstall --delete-data Application_ID 
    
    and follow the instructions.

Example:

I want to purge Clementine app.

  • I type flatpak list -app and I see the Application_ID from that app is org.clementine_player.Clementine.
  • Then I type
    flatpak uninstall --delete-data org.clementine_player.Clementine
    
    and follow the instructions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .