Delete elements
delete_elementsDeletes Archicad elements by GUID, requiring confirmation for irreversible removal. Returns deleted counts and reasons for any refusals in the active window.
Instructions
Delete elements. IRREVERSIBLE. Refuses without confirm=true. Archicad deletes only elements in the database of the active window and still answers success for the rest (a floor-plan label cannot be deleted while a Layout is active), so elements it would refuse (another view's, on a hidden layer, not reserved in Teamwork, locked, in a hotlinked module, or not found) are not sent, and the rest are read back afterwards. Returns requested; deleted, the count that is really gone; not_deleted grouped by reason with the GUIDs; active_window when anything was refused up front; and stopped if the delete command itself errored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| guids | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||