zfsa-dataset-destroy(1)
Destroy a dataset (and with -r what is inside it)
ZFS Assistant 0.7.0NAME
zfsa-dataset-destroy - Destroy a dataset (and with -r what is inside it)
SYNOPSIS
zfsa dataset destroy [GLOBAL OPTIONS] [-r|--recursive] [-h|--help] <NAME>
DESCRIPTION
Destroy a dataset (and with -r what is inside it).
Without -r a dataset that has datasets or snapshots inside it is refused. With -r they are destroyed too, and you must type the dataset's name, or give --yes --confirm NAME without a terminal. A dataset whose snapshots have clones elsewhere is refused either way. A pool's own dataset goes only with the pool. This can't be undone.
OPTIONS
- -r, --recursive
Also destroy the datasets and snapshots inside it
- -h, --help
Print help (see a summary with '-h')
- <NAME>
The dataset
EXAMPLES
Destroy an empty dataset after answering yes:
zfsa dataset destroy tank/old
See what destroying a dataset with everything inside it would remove, then do it from a script:
zfsa --dry-run dataset destroy -r tank/old zfsa --yes --confirm tank/old dataset destroy -r tank/old
SEE ALSO
zfsa(1) for the global options, authorization, confirmations and exit status, zfsa-dataset(1).