Sample Header Ad - 728x90

Is it safe to delete these snaps?

19 votes
2 answers
57014 views
UPDATE: No, it is not safe to delete these snaps. I deleted them and can no longer open three of my applications. Attempt at opening Visual Studio Code:
~$ code
internal error, please report: running "code" failed: cannot find installed snap "code" at revision 33: missing file /snap/code/33/meta/snap.yaml
The snaps in /var/lib/snapd/snaps are taking up 2.0 GB of space on my disk right now. I want to clear up space, but I'm not sure if deleting these snaps is safe (if so, can I just run sudo rm -rf *?) This is what I see when I run snap list:
code_32.snap              gnome-3-28-1804_116.snap   gnome-logs_93.snap
code_33.snap              gnome-3-34-1804_27.snap    gnome-system-monitor_135.snap
core18_1705.snap          gnome-3-34-1804_33.snap    gnome-system-monitor_145.snap
core18_1754.snap          gnome-calculator_730.snap  gtk-common-themes_1502.snap
core_8935.snap            gnome-calculator_748.snap  gtk-common-themes_1506.snap
core_9066.snap            gnome-characters_495.snap  partial
discord_109.snap          gnome-characters_539.snap  spotify_36.snap
gnome-3-28-1804_110.snap  gnome-logs_100.snap        spotify_41.snap
What are the gnome, code, and core snaps? I've installed Discord and Spotify. Will deleting the discord and spotify snaps lead to any issues with opening those applications? I'm using Ubuntu 18.04.3 LTS.
Asked by moonmilk (301 rep)
Jun 1, 2020, 09:27 PM
Last activity: Feb 6, 2024, 05:26 PM