1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-22 06:01:54 +00:00

delete --force: do not ask when deleting a repo, fixes #5941

This commit is contained in:
Thomas Waldmann 2022-01-30 20:08:23 +01:00
parent a2b131dc2d
commit d917c3a43b

View file

@ -1241,6 +1241,7 @@ def _delete_repository(self, args, repository):
keep_security_info = args.keep_security_info
if not args.cache_only:
if args.forced == 0: # without --force, we let the user see the archives list and confirm.
msg = []
try:
manifest, key = Manifest.load(repository, Manifest.NO_OPERATION_CHECK)