feature:discard
Delete the editable (non-versioned) copy of a feature from the local cache.
Usage
splent feature:discard <feature_name> [--namespace <namespace>]
Example
splent feature:discard notepad
With explicit namespace:
splent feature:discard notepad --namespace splent_io
Description
This command:
- Removes only the editable feature folder from
.splent_cache. - Scans all products in the workspace to detect if any product depends on the feature in editable mode (no
@version). - If the feature is in use, asks for confirmation before deleting.
- Keeps all versioned snapshots (
feature@version) intact.
This is intended to clean up local development copies safely.