vw_delete_layer
Delete an empty Vectorworks layer, or force-remove it with all of its objects. Use it to clean up drawing layers, noting the document's only layer is kept.
Instructions
Delete a layer, by default only when it is empty. With force=True the objects on it are deleted too and cannot be brought back by vw_revert_last (this call is a revert barrier either way: later reverts stop here). The only layer of a document cannot be deleted; if the layer is active, another one is made active first. Returns {name, objects_deleted}.
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": {
"name": "<name>"
},
"name": "vw_delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Layer name, as vw_list_layers shows it. | |
| force | No | True deletes the layer together with every object on it. Default False refuses while the layer holds objects. | |
| document | No | Name of the document this call may change, as listed by vw_list_documents. If given and another document is in front, nothing changes and the call fails; use vw_switch_document first. Always pass it for writes. |