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