delete_variables
Delete unused Figma variables by ID or entire collection. Operation is rejected if any variable is still referenced in the document.
Instructions
Delete specific variables by ID or an entire variable collection. Provide either variableIds OR collectionId (not both). Performs a full-document consumer check (nodes, styles, and variable aliases) first — if any variable is still in use, the entire operation is rejected. Note: Consumer scanning is limited to the current document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variableIds | No | Array of variable IDs to delete. Mutually exclusive with collectionId. | |
| collectionId | No | ID of a variable collection to delete (all its variables must be unused). Mutually exclusive with variableIds. |