Delete a shape
visio_delete_shapeDelete a shape from the Visio page. Removes the specified shape; also delete dangling connectors afterwards or check connections to keep the diagram clean.
Instructions
Delete a shape from the page.
Deleting a box leaves its connectors behind as dangling lines, so delete those too, or check visio_list_connections afterwards.
Args: shape_id: Id from visio_list_shapes. page: Page name or 1-based index. Omit for the page on screen. document: File name or 1-based index. Omit for the active document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| document | No | ||
| shape_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| page | No | ||
| action | Yes | ||
| detail | Yes | ||
| affected | No | ||
| document | No | ||
| shape_id | No |