# Tested on RHEL 6 & 7
# Choose the F.S. to remove zfs list NAME USED AVAIL REFER MOUNTPOINT c_pool 349M 19.2G 30K /c_pool c_pool/zfs01 349M 675M 349M /zfs01 c_pool/zfs02 30K 19.2G 30K /filesystem02 <---- m_pool 100K 9.78G 30K /m_pool ZPOOL=c_pool ZFSFS=zfs02 MNTPT=`zfs list | grep $ZPOOL/$ZFSFS | awk '{print$NF}'`; echo $MNTPT /filesystem02 # Remove F.S. zfs destroy $ZPOOL/$ZFSFS rmdir $MNTPT # Check zfs list NAME USED AVAIL REFER MOUNTPOINT c_pool 349M 19.2G 30K /c_pool c_pool/zfs01 349M 675M 349M /zfs01 m_pool 100K 9.78G 30K /m_pool |