2017-06-07 00:06:36 +02:00
|
|
|
.. include:: delete.rst.inc
|
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
2024-09-18 14:05:12 +02:00
|
|
|
# delete all backup archives named "kenny-files":
|
|
|
|
$ borg delete -a kenny-files
|
2018-07-12 20:53:03 +02:00
|
|
|
# actually free disk space:
|
2022-06-24 01:19:19 +02:00
|
|
|
$ borg compact
|
2017-06-07 00:06:36 +02:00
|
|
|
|
2024-09-18 14:05:12 +02:00
|
|
|
# delete a specific backup archive using its unique archive ID prefix
|
|
|
|
$ borg delete aid:d34db33f
|
|
|
|
|
2018-05-26 21:13:43 +05:30
|
|
|
# delete all archives whose names begin with the machine's hostname followed by "-"
|
2023-05-16 00:50:50 +02:00
|
|
|
$ borg delete -a 'sh:{hostname}-*'
|
2018-05-26 21:13:43 +05:30
|
|
|
|
|
|
|
# delete all archives whose names contain "-2012-"
|
2023-05-16 00:50:50 +02:00
|
|
|
$ borg delete -a 'sh:*-2012-*'
|
2018-05-26 21:13:43 +05:30
|
|
|
|
|
|
|
# see what would be deleted if delete was run without --dry-run
|
2023-05-16 00:50:50 +02:00
|
|
|
$ borg delete --list --dry-run -a 'sh:*-May-*'
|
2022-07-05 00:38:37 +02:00
|
|
|
|