feature:discard
Introduction
feature:discard deletes the editable copy of a feature, the working copy at <workspace>/<feature>/. The pinned snapshots in .splent_cache stay. Use it when you are done developing a feature locally.
splent feature:discard notes
🧩 Editable feature detected at:
/workspace/splent_feature_notes
🗑️ Removing editable feature folder...
✅ Editable feature removed.
🎯 All versioned snapshots preserved.
Commits you have not pushed are lost with the copy. Check with
splent feature:git notes statusfirst.
When a product still uses it
⚠️ This editable feature is currently being used in:
- my_first_app
Do you want to continue and break these products? [y/N]:
A product that declares the feature without a version runs this copy. You are asked before it goes, and the default answer keeps it. Pin a release in that product first with feature:attach, or remove the feature with feature:remove.
Reference
| Argument or option | Description |
|---|---|
FEATURE_NAME |
The feature, with or without the splent_feature_ prefix |
--namespace |
Its namespace. Defaults to SPLENT_DEFAULT_NAMESPACE, then splent_io |
It needs a selected product (SPLENT_APP). With no editable copy, it says there is nothing to discard. Answering no exits 1 and removes nothing.
See also
- Editable and pinned features explains where each kind lives.
feature:deleteremoves a pinned snapshot from the cache.