Reski's hobbies blog place…

This is not just about me, but also bout my family
February 21st, 2012 by ayah

How to Delete ZFS Snapshot

To Delete ZFS Snapshot

zfs destroy $snapshot

To make it easy, following is the bash script to delete all the zfs snapshot with single shot

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