hfutils.cache.delete
delete_detached_cache
- hfutils.cache.delete.delete_detached_cache(repo_id: str | None = None, repo_type: str | None = None, cache_dir: str | None = None)[source]
Deletes all detached revisions from the cache that match the specified repository ID and type.
- Parameters:
repo_id (Optional[str]) – The repository ID to match. If None, matches any ID.
repo_type (Optional[str]) – The repository type to match. If None, matches any type.
cache_dir (Optional[str]) – The directory where the cache is stored. If None, uses the default directory.
delete_cache
- hfutils.cache.delete.delete_cache(repo_id: str | None = None, repo_type: str | None = None, cache_dir: str | None = None)[source]
Deletes all revisions from the cache that match the specified repository ID and type.
- Parameters:
repo_id (Optional[str]) – The repository ID to match. If None, matches any ID.
repo_type (Optional[str]) – The repository type to match. If None, matches any type.
cache_dir (Optional[str]) – The directory where the cache is stored. If None, uses the default directory.