delete_elements
Deletes Revit elements by ID, including hosted elements, in one transaction that rolls back if any deletion fails.
Instructions
Delete one or more elements from the Revit model.
Removes elements by their IDs. If a deleted element hosts other elements (e.g., a wall with doors), the hosted elements are also deleted (cascade). All deletions happen in a single transaction — if any fails, none are deleted.
Args: element_ids: List of Revit element IDs to delete ctx: MCP context for logging
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"element_ids": "<element_ids>"
},
"name": "delete_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_ids | Yes |