krita_delete_layer
Delete a layer node and its entire subtree, with safeguards for locked, animated, or last top-level layers. Get back the removed handles and reuse the operation ID for safe retries.
Instructions
Delete the explicit paint/group/mask node and its bounded subtree. Rejects locked/animated descendants and the last top-level layer. Returns removed handles. Reuse operation_id on retries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes |