Hi,

how can I delete an existing btrfs subvolume? The documentation is poor, so I tried this:


# btrfs subvol list /
ID 256 gen 114 top level 5 path @
ID 257 gen 135 top level 256 path @/.snapshots
ID 258 gen 137 top level 257 path @/.snapshots/1/snapshot
ID 259 gen 114 top level 256 path @/boot/grub2/i386-pc
ID 260 gen 114 top level 256 path @/boot/grub2/x86_64-efi
ID 261 gen 130 top level 256 path @/home
ID 262 gen 114 top level 256 path @/opt
ID 263 gen 114 top level 256 path @/srv


# umount /home

# btrfs subvol delete @/home
ERROR: cannot access subvolume @/home: No such file or directory

# btrfs subvol delete @home
ERROR: cannot access subvolume @home: No such file or directory

# btrfs subvol delete /@home
ERROR: cannot access subvolume /@home: No such file or directory

# btrfs subvol delete /home
ERROR: not a subvolume: /home

# btrfs subvol delete home
ERROR: cannot access subvolume home: No such file or directory


Olaf