Delete Surface Element
delete_surface_elementDelete a surface element in a document by its element ID. Optionally remove all connectors referencing the deleted element to prevent dangling references.
Instructions
Delete a surface element by id. Set pruneConnectors=true to also delete any connectors whose source or target referenced the deleted element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | Workspace ID (optional if default set) | |
| docId | Yes | Document ID | |
| elementId | Yes | Element ID to delete | |
| pruneConnectors | No | Also delete connectors referencing this element (default false) |