Remove a subproject from the project structure.
Safely archives a subproject and removes its references from project files. Use this when you need to remove a subproject without deleting its files permanently.
/plugin marketplace add unclecode/claude-code-tools/plugin install unclecode-cc-toolkit@unclecode-toolsRemove a subproject from the project structure.
$ARGUMENTS
Safely remove a subproject. This will:
Extract subproject name from query.
If empty, list available subprojects and ask which to remove.
ls .context/project/{name}/INDEX.md
If not found, show error: "Subproject '{name}' not found."
Read .context/project/STATUS.md to check if this is the active subproject.
If active, ask: "This is the active subproject. Which subproject should become active instead?"
Show warning:
## Removing Subproject: {name}/
This will:
- Archive {name}/ to archive/{name}_{date}/
- Remove from INDEX.md subproject table
- Remove from STATUS.md summary
- Remove from CODEBASE.md refs
- Add removal entry to CHANGELOG.md
Files will NOT be deleted, just archived.
Proceed? (yes/no)
Wait for confirmation.
mv .context/project/{name} .context/project/archive/{name}_{date}
INDEX.md: Remove from subproject table
STATUS.md:
CODEBASE.md: Remove from subproject refs
CHANGELOG.md: Add entry
## {DATE} | Removed Subproject: {name}
**Changes**:
- Archived {name}/ to archive/{name}_{date}/
- Removed from project structure
**Context**:
- {reason if provided}
- Files preserved in archive
## Removed Subproject: {name}/
**Archived to**: archive/{name}_{date}/
**Active subproject**: {new_active}
Updated:
- Root INDEX.md
- Root STATUS.md
- Root CODEBASE.md
- Root CHANGELOG.md
To restore, move from archive back to project root.
# With name
/pp-remove old-api
# With reason
/pp-remove old-api - replaced by new api design
# Interactive (will list and ask)
/pp-remove