1 2 3 4 5
[[ $# -ne 1 ]] && \ die "usage: $0 <directory to remove>" [[ -d $1 ]] || \ die "$1 is not a directory" btrfs subvolume delete $1 || die "btrfs subvolume delete failed"