delete.rst 965 B

12345678910111213141516171819202122232425
  1. .. include:: delete.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # delete a single backup archive:
  6. $ borg delete /path/to/repo::Monday
  7. # delete all archives whose names begin with the machine's hostname followed by "-"
  8. $ borg delete --prefix '{hostname}-' /path/to/repo
  9. # delete all archives whose names contain "-2012-"
  10. $ borg delete --glob-archives '*-2012-*' /path/to/repo
  11. # see what would be deleted if delete was run without --dry-run
  12. $ borg delete -v --dry-run -a '*-May-*' /path/to/repo
  13. # delete the whole repository and the related local cache:
  14. $ borg delete /path/to/repo
  15. You requested to completely DELETE the repository *including* all archives it contains:
  16. repo Mon, 2016-02-15 19:26:54
  17. root-2016-02-15 Mon, 2016-02-15 19:36:29
  18. newname Mon, 2016-02-15 19:50:19
  19. Type 'YES' if you understand this and want to continue: YES