snapdir flush-cache

Flush the local cache.

flush-cache removes cached objects and manifests from the local cache, reclaiming disk space. Snapshots pushed to a store are unaffected and can be fetched again.

Usage

snapdir flush-cache [OPTIONS]

Options

flush-cache takes no positional arguments. It accepts the global options; the most relevant are --cache-dir, --force, and --dryrun (preview what would be removed).

Examples

Flush the default cache:

snapdir flush-cache

Preview a flush of a specific cache directory without deleting anything:

snapdir flush-cache --cache-dir /var/snapdir/cache --dryrun

See also