4

I prevously removed snapd, however, the /snap directory is still there, and consumes a lot of space. How to remove it?

I tried sudo rm -rf /snap, but that says

rm: cannot remove '/snap/path/to/file': Read-only file system

for all files in the directory.

I really did not understand why I could not delete those files even as a superuser, despite snapd already being uninstalled.

1 Answers1

7

I found it.

sudo apt autoremove --purge snapd

Note: autoremove is optional. It removes the dependencies which were explicitly required for snapd, and this will free up some space.