|
@@ -3171,12 +3171,23 @@ class Archiver:
|
|
|
delete_epilog = process_epilog("""
|
|
|
This command deletes an archive from the repository or the complete repository.
|
|
|
Disk space is reclaimed accordingly. If you delete the complete repository, the
|
|
|
- local cache for it (if any) is also deleted.
|
|
|
+ local cache for it (if any) is also deleted. Alternatively, you can delete just
|
|
|
+ the local cache with the ``--cache-only`` option.
|
|
|
|
|
|
When using ``--stats``, you will get some statistics about how much data was
|
|
|
deleted - the "Deleted data" deduplicated size there is most interesting as
|
|
|
that is how much your repository will shrink.
|
|
|
Please note that the "All archives" stats refer to the state after deletion.
|
|
|
+
|
|
|
+ You can delete multiple archives by specifying their common prefix, if they
|
|
|
+ have one, using the ``--prefix PREFIX`` option. You can also specify a shell
|
|
|
+ pattern to match multiple archives using the ``--glob-archives GLOB`` option
|
|
|
+ (for more info on these patterns, see ``borg help patterns``). Note that these
|
|
|
+ two options are mutually exclusive.
|
|
|
+
|
|
|
+ To avoid accidentally deleting archives, especially when using glob patterns,
|
|
|
+ it might be helpful to use the ``--dry-run`` to test out the command without
|
|
|
+ actually making any changes to the repository.
|
|
|
""")
|
|
|
subparser = subparsers.add_parser('delete', parents=[common_parser], add_help=False,
|
|
|
description=self.do_delete.__doc__,
|