singularity cache clean

Clean your local Singularity cache


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...]


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


-f, --force          force cleaning the cache (otherwise operate in dry run mode)
-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   a list of cache types to clean (possible values: library, oci, shub, blob, net, oras, all) (default [all])


Auto generated by spf13/cobra on 26-Jul-2019