cache:prune

Remove orphaned cache entries not referenced by any product, then clean up broken symlinks.


Usage

splent cache:prune [--yes]

Example

splent cache:prune

Output:

Orphaned entries to remove (2):
  - splent_io/splent_feature_auth@v1.0.0
  - splent_io/splent_feature_redis@v1.0.0

Remove all of the above? [y/N]:

Options

Option Description
--yes Skip the confirmation prompt and remove immediately.

Description

Performs a targeted cleanup: it identifies orphaned cache entries (same logic as cache:orphans) and deletes only those, leaving all referenced entries intact. After deletion it removes any broken symlinks inside product features/ directories.

Use cache:prune when you want to reclaim disk space from old versions or abandoned features without touching anything still in use.

Deleted cache entries cannot be recovered locally. Run feature:clone to restore them from GitHub.


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es