destroy the cache for ``repository`` or at ``path``
(repository, path=None)
| 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, |