Clear all Snapper snapshots
The command in recent versions of snapper is (I don't remember when it was introduced, but the version in e.g., openSUSE 13.2 supports this):
snapper delete number1-number2
So to delete all snapshots (assuming you have no more than 100000 of them) you'd do:
snapper delete 1-100000
Obviously this only deletes snapshots on the default root config, so for a different config it would be:
snapper -c configname delete number1-number2
You can use a for
loop to delete all snapshots within a range (run as root).
# for i in `seq 1 999`; do snapper delete $i; done
This will hit some invalid entries (when the number doesn't correspond to a snapshot ID), which will result in a harmless error log.
To determine the range (lower and upper limit) of snapshot IDs, so that the loop won't run unnecessarily long, use:
snapper list
I found this solution along with a discussion about how to reduce the snapper interval and retention settings.