Remove a node and all relationships involving it. Cleans up all references in scopes, operations, views, and external references.
Library function: src/operations/removeNode!removeNodeOp
spm remove <node-id> [options]
| Argument | Description |
|---|---|
<node-id> |
ID of the node to remove |
| Flag | Description | Required |
|---|---|---|
--path |
SysProM document path (auto-detected if omitted) | |
--json |
output as JSON | |
--dry-run |
preview changes without saving | |
--sync |
sync to markdown directory after saving | |
--hard |
Hard delete (physical removal) | |
--recursive |
Allow subsystem removal | |
--repair |
Repair must_follow chains |