zfsdestroy [-Rfnprv] filesystem|volume
Destroys the given dataset. By default, the command unshares any file systems that are currently
shared, unmounts any file systems that are currently mounted, and refuses to destroy a dataset that has
active dependents (children or clones).
-R Recursively destroy all dependents, including cloned file systems outside the target hierarchy.
-f Forcibly unmount file systems. This option has no effect on non-file systems or unmounted file
systems.
-n Do a dry-run ("No-op") deletion. No data will be deleted. This is useful in conjunction with the
-v or -p flags to determine what data would be deleted.
-p Print machine-parsable verbose information about the deleted data.
-r Recursively destroy all children.
-v Print verbose information about the deleted data.
Extreme care should be taken when applying either the -r or the -R options, as they can destroy large
portions of a pool and cause unexpected behavior for mounted file systems in use.
zfsdestroy [-Rdnprv] filesystem|volume@snap[%snap[,snap[%snap]]]…
Attempts to destroy the given snapshot(s). This will fail if any clones of the snapshot exist or if
the snapshot is held. In this case, by default, zfsdestroy will have no effect and exit in error. If
the -d option is applied, the command will instead mark the given snapshot for automatic destruction as
soon as it becomes eligible. While marked for destruction, a snapshot remains visible, and the user
may create new clones from it and place new holds on it.
The read-only snapshot properties defer_destroy and userrefs are used by zfsdestroy to determine
eligibility and marked status.
An inclusive range of snapshots may be specified by separating the first and last snapshots with a
percent sign. The first and/or last snapshots may be left blank, in which case the filesystem's oldest
or newest snapshot will be implied.
Multiple snapshots (or ranges of snapshots) of the same filesystem or volume may be specified in a
comma-separated list of snapshots. Only the snapshot's short name (the part after the @) should be
specified when using a range or comma-separated list to identify multiple snapshots.
-R Recursively destroy all clones of these snapshots, including the clones, snapshots, and children.
If this flag is specified, the -d flag will have no effect.
-d Rather than returning error if the given snapshot is ineligible for immediate destruction, mark it
for deferred, automatic destruction once it becomes eligible.
-n Do a dry-run ("No-op") deletion. No data will be deleted. This is useful in conjunction with the
-p or -v flags to determine what data would be deleted.
-p Print machine-parsable verbose information about the deleted data.
-r Destroy (or mark for deferred deletion) all snapshots with this name in descendent file systems.
-v Print verbose information about the deleted data.
Extreme care should be taken when applying either the -r or the -R options, as they can destroy large
portions of a pool and cause unexpected behavior for mounted file systems in use.
zfsdestroyfilesystem|volume#bookmark
The given bookmark is destroyed.