Forrest logo
back to the zfs tool

zfs:tldr:270b7

zfs: Delete a ZFS filesystem.
$ zfs destroy ${pool_name-filesystem_name}
try on your machine

The command "zfs destroy ${pool_name-filesystem_name}" is used to delete a ZFS filesystem or dataset in a ZFS storage pool. Here's the breakdown of the command: - "zfs destroy": This is the ZFS command that is used to delete or destroy a ZFS filesystem or dataset. - "${pool_name-filesystem_name}": This is a variable that represents the name of the ZFS pool and the name of the specific filesystem or dataset within that pool that you want to destroy. By using the "${pool_name-filesystem_name}" syntax, it allows you to specify different pool names and filesystem names depending on your specific setup. So, when you run this command, you need to replace "${pool_name-filesystem_name}" with the actual names of the ZFS pool and the filesystem or dataset you want to delete.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the zfs tool