Last Updated: October 11, 2018
·
490
· phaus

ZFS clean all Snapshots of a system

Sometimes you just need to get some space left :-).

#!/bin/bash
for snapshot in `zfs list -H -t snapshot | cut -f 1`
do
    zfs destroy $snapshot
done