delete.rst.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. borg:command:: borg delete
  3. .. _borg_delete:
  4. borg delete
  5. -----------
  6. ::
  7. borg [common options] delete <options> TARGET
  8. positional arguments
  9. TARGET
  10. archive or repository to delete
  11. optional arguments
  12. ``-s``, ``--stats``
  13. | print statistics for the deleted archive
  14. ``-c``, ``--cache-only``
  15. | delete only the local cache for the given repository
  16. ``--force``
  17. | force deletion of corrupted archives, use --force --force in case --force does not work.
  18. ``--save-space``
  19. | work slower, but using less space
  20. `Common options`_
  21. |
  22. filters
  23. ``-P``, ``--prefix``
  24. | only consider archive names starting with this prefix
  25. ``--sort-by``
  26. | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  27. ``--first N``
  28. | consider first N archives after other filters were applied
  29. ``--last N``
  30. | consider last N archives after other filters were applied
  31. Description
  32. ~~~~~~~~~~~
  33. This command deletes an archive from the repository or the complete repository.
  34. Disk space is reclaimed accordingly. If you delete the complete repository, the
  35. local cache for it (if any) is also deleted.