delete.rst.inc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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] [REPOSITORY_OR_ARCHIVE] [ARCHIVE...]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  10. | **positional arguments** |
  11. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | | ``REPOSITORY_OR_ARCHIVE`` | repository or archive to delete |
  13. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | | ``ARCHIVE`` | archives to delete |
  15. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | **optional arguments** |
  17. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | | ``-n``, ``--dry-run`` | do not change repository |
  19. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | | ``-s``, ``--stats`` | print statistics for the deleted archive |
  21. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | | ``--cache-only`` | delete only the local cache for the given repository |
  23. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | | ``--force`` | force deletion of corrupted archives, use ``--force --force`` in case ``--force`` does not work. |
  25. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | | ``--save-space`` | work slower, but using less space |
  27. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | .. class:: borg-common-opt-ref |
  29. | |
  30. | :ref:`common_options` |
  31. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | **Archive filters** — Archive filters can be applied to repository targets. |
  33. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | | ``-P PREFIX``, ``--prefix PREFIX`` | only consider archive names starting with this prefix. |
  35. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | | ``-a GLOB``, ``--glob-archives GLOB`` | only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive. |
  37. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
  39. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | | ``--first N`` | consider first N archives after other filters were applied |
  41. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | | ``--last N`` | consider last N archives after other filters were applied |
  43. +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. .. raw:: html
  45. <script type='text/javascript'>
  46. $(document).ready(function () {
  47. $('.borg-options-table colgroup').remove();
  48. })
  49. </script>
  50. .. only:: latex
  51. REPOSITORY_OR_ARCHIVE
  52. repository or archive to delete
  53. ARCHIVE
  54. archives to delete
  55. optional arguments
  56. -n, --dry-run do not change repository
  57. -s, --stats print statistics for the deleted archive
  58. --cache-only delete only the local cache for the given repository
  59. --force force deletion of corrupted archives, use ``--force --force`` in case ``--force`` does not work.
  60. --save-space work slower, but using less space
  61. :ref:`common_options`
  62. |
  63. Archive filters
  64. -P PREFIX, --prefix PREFIX only consider archive names starting with this prefix.
  65. -a GLOB, --glob-archives GLOB only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive.
  66. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  67. --first N consider first N archives after other filters were applied
  68. --last N consider last N archives after other filters were applied
  69. Description
  70. ~~~~~~~~~~~
  71. This command deletes an archive from the repository or the complete repository.
  72. Disk space is reclaimed accordingly. If you delete the complete repository, the
  73. local cache for it (if any) is also deleted.
  74. When using ``--stats``, you will get some statistics about how much data was
  75. deleted - the "Deleted data" deduplicated size there is most interesting as
  76. that is how much your repository will shrink.
  77. Please note that the "All archives" stats refer to the state after deletion.