clean_cache: Clean Conda Cache

View source: R/clean_cache.R

clean_cacheR Documentation

Clean Conda Cache

Description

This function cleans the Conda cache by removing all packages and tarballs from the local cache directory. It is useful for freeing up disk space and ensuring that the cache does not contain outdated or unnecessary files.

Usage

clean_cache(verbose = c("output", "silent", "cmd", "spinner", "full"))

Arguments

verbose

A character string indicating the verbosity level of the output. It can be one of "silent", "cmd", "output", or "full". The default is "output".

Details

Packages that are still linked with existing environments are not be removed. If you expect to clean the whole cache, consider removing all existing environments first using list_envs() and remove_env().

Value

Invisibly returns the result of the underlying command executed.

Examples

## Not run: 
condathis::with_sandbox_dir({
  clean_cache(verbose = "output")
})

## End(Not run)


condathis documentation built on Nov. 8, 2025, 9:06 a.m.