6

There is one snapshot created by apt-btrfs-snapshot that won't delete

  Delete subvolume '/tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX'
  ERROR: cannot delete '/tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX' - Directory not empty

How can I delete it?

user64996
  • 8,407

1 Answers1

8

Answering my own question:

Problem was there was a subvolume within a subvolume. You need to delete all inner subvols before deleting containing vol.

btrfs subvol delete /tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX/@ btrfs subvol delete /tmp/foo/@apt-snapshot-2013-04-XX_1X:3X:XX

user64996
  • 8,407