ende clean
ende clean removes Ende's global module cache directory. See
Modules for more information about how Ende
caches dependencies.
Basic usage
ende clean
What it keeps
Ende 2026.12.01
localStorage data and the Cache API's data used to live in the cache folder,
so ende clean deleted them. They now live in Ende's data folder, and Ende
moves existing data there once.
ende clean doesn't remove what programs store with localStorage and the
Cache API. That data is kept in Ende's data folder, and ende clean says where:
$ ende clean
Keeping localStorage data in /Users/ende/Library/Application Support/ende/location_data
Removed /Users/ende/Library/Caches/ende (34 files, 473.25KB)
If such data is still in the cache folder, because Ende couldn't move it or an
older Ende wrote it again, ende clean removes nothing and says how to move it.
ende info shows both folders.
ende clean also removes nothing when removing the cache folder would remove
the data folder or the
auth tokens file:
when ENDE_DIR or XDG_CACHE_HOME names a folder that holds them, or
XDG_DATA_HOME or XDG_CONFIG_HOME one inside the cache folder. It compares
the paths as the file system resolves them, following symlinks (and, on
Windows, ignoring case). It refuses only when there is data or a tokens file to
lose, on a dry run too, and says what to change:
error: The auth tokens file /home/me/.cache/ende/config/ende/auth_tokens is inside the cache folder /home/me/.cache/ende, so nothing was removed: `ende clean` would remove it too. Set ENDE_DIR or XDG_CACHE_HOME to a folder that doesn't hold it, or XDG_CONFIG_HOME to one outside the cache folder, then run `ende clean` again.
For the data folder, the message starts with "The localStorage data folder" and
names XDG_DATA_HOME. On Windows, both messages also name LOCALAPPDATA.
Dry run
Preview what would be deleted without actually removing anything (-n is short
for --dry-run, Ende 2026.12.01+):
ende clean --dry-run
Keeping what a project still needs
Use --except with one or more entry points to remove everything from the cache
except the data those files need:
ende clean --except main.ts
When to use this
Use ende clean when you need to:
- Resolve issues caused by corrupted or stale cached modules
- Free disk space used by cached dependencies
Command line usage:
cleanRemove the cache directory
Options
--dry-run, -n
Show what would be removed without performing any actions.
--except
Retain cache data needed by the given files.
--vendor
Toggles local vendor folder usage for remote modules.