Always Geeky

Knowledge base for various geeky topics
 

+menu-

Manually deleting a ZFS dataset on NAS4Free

If you need to manually delete a dataset, such not being able to do so from the NAS4Free web interface, you can run this command as root, where ‘pool1’ is the name of the ZFS pool, and ‘test-dataset’ is the name of your ZFS dataset.

zfs destroy pool1/test-dataset

You may receive the following error, at which point you need to add the -r flag.

nas4free: / # zfs destroy pool1/test-dataset
cannot destroy ‘pool1/test-dataset’: filesystem has children
use ‘-r’ to destroy the following datasets:
z2pool0/test@test
nas4free: / # zfs destroy -r pool1/test-dataset
nas4free: / #

This entry was posted in NAS4Free and tagged . Bookmark the permalink.

 

Leave a Reply