# 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 ```text snapdir flush-cache [OPTIONS] ``` ### Options `flush-cache` takes no positional arguments. It accepts the [global options](overview.md#global-options); the most relevant are `--cache-dir`, `--force`, and `--dryrun` (preview what would be removed). ## Examples Flush the default cache: ```console snapdir flush-cache ``` Preview a flush of a specific cache directory without deleting anything: ```console snapdir flush-cache --cache-dir /var/snapdir/cache --dryrun ``` ## See also - [`snapdir verify-cache`](snapdir-verify-cache.md) — check the cache before flushing - [Stores and cache](../concepts/stores-and-cache.md)