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 the entire cache is cleaned, use –name or –type flags to override this behavior. 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

-n, --dry-run        operate in dry run mode and do not actually clean the cache
-f, --force          suppress any prompts and clean the cache
-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])

SEE ALSO

Auto generated by spf13/cobra on 15-Nov-2019