zfs

Zfs: how to remove a volume?


I've been looking around for this for a while but I can't tell if I am missing something here because this seems a bit basic.

In zfs:

sudo zfs create -V 5mb new-pool/zfsvol1

When I do "zfs list" I can see I have a lot of zfs volumes clogging up my pool. I want to remove these. I don't understand how? Sorry if this is a very simple question.


Solution

  • As covered in the zfs man page, zfs destroy my-vol removes a volume.