Delete elements
deleteRemove specified elements by ID from a floor plan: walls, rooms, pieces, dimensions, labels, lines. Optionally also remove labels that point to the removed elements to maintain consistency.
Instructions
Delete elements 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 | Plan version written to, when there are several | |
| ok | Yes | Always true | |
| ids | No | Ids created or touched | |
| rev | No | Plan revision | |
| text | Yes | The reply as written | |
| labels_left | No | Labels left pointing at deleted pieces: [id, text] | |
| labels_deleted | No | Labels deleted with them |