Delete elements
deleteRemove walls, rooms, pieces, or elements by id in one atomic step. Optionally remove labels left pointing at deleted items to keep the plan consistent.
Instructions
Delete (remove) walls, rooms, pieces or any element by id, atomically. Labels left pointing at a deleted piece — about it, or standing on it — are named in the reply as labels_left [[id, text]], since an index code over what is now another piece is found by nobody; labels=true deletes them in the same step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The elements to delete: walls, rooms, pieces, dimensions, labels, lines | |
| labels | No | Also delete the labels left pointing at the deleted pieces |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| v | No | ||
| ok | Yes | ||
| ids | No | ||
| rev | No | ||
| text | Yes | ||
| labels_left | No | ||
| labels_deleted | No |