delete_variable
Delete a single Figma variable by its ID; any nodes or paints bound to it revert to their raw values.
Instructions
Delete a single variable by id; any node or paint bound to it reverts to its raw value. To delete an entire collection and all its variables use delete_variable_collection. Returns { ok, variableId, name }.
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": {
"variableId": "<variableId>"
},
"name": "delete_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variableId | Yes | Variable id to delete |