2017-06-06 18:06:36 -04:00
|
|
|
.. include:: delete.rst.inc
|
|
|
|
|
|
|
|
|
|
Examples
|
|
|
|
|
~~~~~~~~
|
|
|
|
|
::
|
|
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# Delete all backup archives named "kenny-files":
|
2024-09-18 08:05:12 -04:00
|
|
|
$ borg delete -a kenny-files
|
2025-08-23 18:21:57 -04:00
|
|
|
# Actually free disk space:
|
2022-06-23 19:19:19 -04:00
|
|
|
$ borg compact
|
2017-06-06 18:06:36 -04:00
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# Delete a specific backup archive using its unique archive ID prefix
|
2024-09-18 08:05:12 -04:00
|
|
|
$ borg delete aid:d34db33f
|
|
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# Delete all archives whose names begin with the machine's hostname followed by "-"
|
2023-05-15 18:50:50 -04:00
|
|
|
$ borg delete -a 'sh:{hostname}-*'
|
2018-05-26 11:43:43 -04:00
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# Delete all archives whose names contain "-2012-"
|
2023-05-15 18:50:50 -04:00
|
|
|
$ borg delete -a 'sh:*-2012-*'
|
2018-05-26 11:43:43 -04:00
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
# See what would be deleted if delete was run without --dry-run
|
2023-05-15 18:50:50 -04:00
|
|
|
$ borg delete --list --dry-run -a 'sh:*-May-*'
|
2022-07-04 18:38:37 -04:00
|
|
|
|