Score:3

How do you purge a removed app? or delete snapshot after app removal

us flag

I removed an app with snap:

sudo snap remove app-name

Then I realised I should have added --purge argument to disable snapshot. When I tried to

sudo snap remove app-name --purge

it says the app-name does not exist, which is fair.

The question is now how do I remove the saved files or the created snapshot?

Score:6
us flag

As I was writing the question, I quickly realized I could use the snapshot commands:

$ snap help

...
Snapshots: saved, save, check-snapshot, restore, forget
...

Looks like I need to find the saved snapshots with saved and then forget it.

$ sudo snap saved

Set  Snap      Age    Version  Rev  Size    Notes
1    app-name  4m30s  1.2.0    25   1.89MB  auto

$ sudo snap forget 1

Works.

Hope this obvious answer could help others.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.