MCPcopy
hub / github.com/borgbackup/borg / destroy

Method destroy

src/borg/cache.py:363–369  ·  view source on GitHub ↗

destroy the cache for ``repository`` or at ``path``

(repository, path=None)

Source from the content-addressed store, hash-verified

361
362 @staticmethod
363 def destroy(repository, path=None):
364 """destroy the cache for ``repository`` or at ``path``"""
365 path = cache_dir(repository, path)
366 config = path / "config"
367 if config.exists():
368 config.unlink() # kill config first
369 shutil.rmtree(path)
370
371 def __new__(
372 cls,

Callers 3

do_repo_deleteMethod · 0.45
do_repo_createMethod · 0.45
lockstoreFunction · 0.45

Calls 2

cache_dirFunction · 0.85
existsMethod · 0.45

Tested by 1

lockstoreFunction · 0.36