FreeBSD Fortune on Nostr: You can delete a range of ZFS snapshots (a-z) in multiple ways. The following will ...
You can delete a range of ZFS snapshots (a-z) in multiple ways.
The following will delete d and all earlier snapshots:
zfs destroy mypool/data@%d
To delete d and all later snapshots:
zfs destroy mypool/data@d%
To delete all dataset snapshots:
zfs destroy mypool/data@%
Make sure to let ZFS perform a dry run (-n option) first and display (-v) what
it would do to confirm that the delete operation is removing exactly what you
intended.
-- Benedict Reuschling <bcr@FreeBSD.org>
The following will delete d and all earlier snapshots:
zfs destroy mypool/data@%d
To delete d and all later snapshots:
zfs destroy mypool/data@d%
To delete all dataset snapshots:
zfs destroy mypool/data@%
Make sure to let ZFS perform a dry run (-n option) first and display (-v) what
it would do to confirm that the delete operation is removing exactly what you
intended.
-- Benedict Reuschling <bcr@FreeBSD.org>