delete.rst 635 B

1234567891011121314151617181920212223
  1. .. include:: delete.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # delete all backup archives named "kenny-files":
  6. $ borg delete -a kenny-files
  7. # actually free disk space:
  8. $ borg compact
  9. # delete a specific backup archive using its unique archive ID prefix
  10. $ borg delete aid:d34db33f
  11. # delete all archives whose names begin with the machine's hostname followed by "-"
  12. $ borg delete -a 'sh:{hostname}-*'
  13. # delete all archives whose names contain "-2012-"
  14. $ borg delete -a 'sh:*-2012-*'
  15. # see what would be deleted if delete was run without --dry-run
  16. $ borg delete --list --dry-run -a 'sh:*-May-*'