Delete snapshots without Snapper

I have tried to delete Snapper snapshots manually (by using rm -r SNAPSHOT_NUM) in the Konsole.
However, only some files in the snapshot were removed. The rest returned an error message:

rm: cannot remove '102/snapshot/usr/share/doc/packages/libpth20/ANNOUNCE': Read-only file system
rm: cannot remove '102/snapshot/usr/share/doc/packages/libpth20/AUTHORS': Read-only file system
rm: cannot remove '102/snapshot/usr/share/doc/packages/libpth20/COPYING': Read-only file system

…etc.

Now the snapshot is not accessible by Snapper (it is not listed in

snapper ls

and therefore I can’t delete it using

snapper delete

). How do I delete it using rm?

You can not use RM to remove snapshots you MUST use the snapper functions

https://en.opensuse.org/Portal:Snapper

You probably broke it using rm. Don’t know how to recover from that :’(

Hi
You will have missing snapper metadata, try the following;


btrfs subvolume delete /.snapshots/SNAPSHOTNUMBER/snapshot
rm -rf /.snapshots/SNAPSHOTNUMBER

How about…
Use snapper to roll back to before the misbegotten “rm” and then run snapper again to remove the snapshot…

Assumes of course that the integrity of the snapshot being rolled back to is still good… Off the top of my head I can’t think of a reason why there should be a problem since snapshots always increment forwards.

And yes,
It’s a very bad idea to remove snapshots without using Snapper, which will always ensure safe removal.

TSU