Delete Viewport
viewport_deleteDelete a viewport by handle. Use force=true to remove the main viewport and repair the layout's view state.
Instructions
Delete a viewport.
The layout's main viewport needs force=true; deleting it removes the tab's
own view state, and the layout's current-viewport pointer is repaired so the
file does not carry a dangling reference that only CAD would notice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Allow deleting the layout's main viewport. | |
| handle | Yes | Viewport entity handle (from viewport_list). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||