7

I had to reinstall Spotify because of an issue, which is now resolved but something else came up. I was notified that my root partition was filling up and I realised that in /var/lib/snapd/snapshots, there is a file called 16_spotify_1.1.42.622.gbd112320-37_42.zip which is 3.7Gb large. I assume that that is definitely not normal. Is there a way to remove this file?

Melebius
  • 11,750

1 Answers1

14

You probably can just delete these archive files without negative side effects, but the user exposed approach to delete snapshots is using the snap forget command.

  • List the saved snapshots with the command snap saved
  • Remove a snapshot with the command snap forget # where # stands for the set number (first column in the output of the list).

Snapshots that are automatically created (i.e., not actively by you through a snap save command) are automatically deleted after 31 days.

Specifically for Spotify: these snapshots contain user configuration data. In the case of Spotify, this might include locally buffered or downloaded music. This can explain the very large size.

vanadium
  • 97,564