singularity cache clean¶
Clean your local Singularity cache
Synopsis¶
This will clean your local cache (stored at $HOME/.singularity/cache if SINGULARITY_CACHEDIR is not set). By default only blob cache is cleaned, use ‘–all’ to clean the entire cache. Note: if you use Singularity as root, cache will be stored in ‘/root/.singularity/.cache’, to clean that cache, you will need to run ‘cache clean –all’ as root, or with ‘sudo’.
singularity cache clean [clean options...]
Examples¶
All group commands have their own help output:
$ singularity help cache clean --name cache_name.sif
$ singularity help cache clean --type=library,oci
$ singularity cache clean --help
Options¶
-a, --all clean all cache (will override all other options)
-h, --help help for clean
-N, --name strings specify a container cache to clean (will clear all cache with the same name)
-T, --type strings clean cache type, choose between: library, oci, shub, and blob (default [blob])