Destroying multiple ZFS snapshots

Note to self: Sometimes it is necessary to destroy not just a single but multiple ZFS snapshots. This can be done with some command line magic, but the zfs destroy subcommand has built in functionality too. Given a dataset pool1/dataset1 with 5 snapshots: snapshot1 snapshot2 snapshot3 snapshot4 snapshot5 [bash]zfs destroy pool1/dataset1@snapshot1,snapshot2,snapshot4[/bash] will destroy snapshot1, snapshot2 … Continue reading Destroying multiple ZFS snapshots