delete.rst.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_delete:
  3. borg delete
  4. -----------
  5. .. code-block:: none
  6. borg [common options] delete [options] TARGET
  7. TARGET
  8. archive or repository to delete
  9. optional arguments
  10. -s, --stats print statistics for the deleted archive
  11. -c, --cache-only delete only the local cache for the given repository
  12. --force force deletion of corrupted archives, use --force --force in case --force does not work.
  13. --save-space work slower, but using less space
  14. .. class:: borg-common-opt-ref
  15. :ref:`common_options`
  16. filters
  17. -P, --prefix only consider archive names starting with this prefix.
  18. -a, --glob-archives only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive.
  19. --sort-by Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  20. --first N consider first N archives after other filters were applied
  21. --last N consider last N archives after other filters were applied
  22. Description
  23. ~~~~~~~~~~~
  24. This command deletes an archive from the repository or the complete repository.
  25. Disk space is reclaimed accordingly. If you delete the complete repository, the
  26. local cache for it (if any) is also deleted.