delete.rst.inc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. .. _borg_delete:
  2. borg delete
  3. -----------
  4. ::
  5. usage: borg delete [-h] [-v] [--debug] [--lock-wait N] [--show-rc]
  6. [--no-files-cache] [--umask M] [--remote-path PATH] [-s]
  7. [-c] [--save-space]
  8. [TARGET]
  9. Delete an existing repository or archive
  10. positional arguments:
  11. TARGET archive or repository to delete
  12. optional arguments:
  13. -h, --help show this help message and exit
  14. -v, --verbose, --info
  15. enable informative (verbose) output, work on log level
  16. INFO
  17. --debug enable debug output, work on log level DEBUG
  18. --lock-wait N wait for the lock, but max. N seconds (default: 1).
  19. --show-rc show/log the return code (rc)
  20. --no-files-cache do not load/update the file metadata cache used to
  21. detect unchanged files
  22. --umask M set umask to M (local and remote, default: 0077)
  23. --remote-path PATH set remote path to executable (default: "borg")
  24. -s, --stats print statistics for the deleted archive
  25. -c, --cache-only delete only the local cache for the given repository
  26. --save-space work slower, but using less space
  27. Description
  28. ~~~~~~~~~~~
  29. This command deletes an archive from the repository or the complete repository.
  30. Disk space is reclaimed accordingly. If you delete the complete repository, the
  31. local cache for it (if any) is also deleted.