Can't purge Snap package

When entering

sudo snap --purge libreoffice

I'm getting error: unknown flagpurge'`


Solution 1:

You can do

snap remove --purge libreoffice

This will Remove the snap without saving a snapshot of its data according to the man page of snap

Solution 2:

The --purge-option is used in addition to the remove-command. To remove` a snap without saving a snapshot of it's data use:

sudo snap remove --purge libreoffice

Please take a look at man snap to see which commands and options can be used with snap.