delete_node
Remove one or multiple nodes in Figma using a unique node ID or an array of node IDs. Returns a detailed response with the deleted node IDs for confirmation.
Instructions
Deletes one or more nodes in Figma.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the deleted node's ID(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
nodeId | No | The unique Figma node ID to delete. Must be a string in the format '123:456' or a complex instance ID like 'I422:10713;1082:2236'. | |
nodeIds | No | Array of node IDs. Must contain at least 1 and at most 100 items. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"nodeId": {
"description": "The unique Figma node ID to delete. Must be a string in the format '123:456' or a complex instance ID like 'I422:10713;1082:2236'.",
"type": "string"
},
"nodeIds": {
"description": "Array of node IDs. Must contain at least 1 and at most 100 items.",
"items": {
"description": "A Figma node ID. Must be a string in the format '123:456' or a complex instance ID like 'I422:10713;1082:2236'.",
"type": "string"
},
"maxItems": 100,
"minItems": 1,
"type": "array"
}
},
"type": "object"
}