delete_mode
Permanently deletes a mode and all tokens within it. Cannot delete the last mode in a tokenset.Tool Schema
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenset_id | string | Yes | The ID of the tokenset containing the mode |
mode_id | string | Yes | The ID of the mode to delete |
Response
Example Usage in Claude
Delete a Mode
Confirm Deletion
Common Use Cases
1. Cleanup Unused Themes
2. Simplify Design System
3. Consolidate Modes
Restrictions
⚠️ Cannot delete the last mode: Every tokenset must have at least one mode. If you try to delete the only mode in a tokenset, the operation will fail.Checking Before Deletion
Before deleting a mode, consider:- Is this the only mode in the tokenset?
- Are there important tokens in this mode?
- Is this mode referenced elsewhere?
Warnings
⚠️ Destructive Action: This operation cannot be undone. When you delete a mode, you also permanently delete:- All tokens within that mode
- Any token relationships or aliases specific to that mode
Best Practices
- Export data first: Consider exporting tokens before deletion
- Check token count: Review what tokens exist in the mode
- Team communication: Notify team members before deleting shared modes
- Verify it’s not the default: Make sure you’re not deleting the default mode
Notes
- This action is permanent and cannot be reversed
- All tokens in the mode are completely removed
- The tokenset structure remains intact
- Mode IDs are not reusable after deletion
- If you delete the default mode, another mode will automatically become default
See Also
- list_modes - View all modes before deletion
- get_mode - Check mode details
- list_tokens_by_mode - See tokens in the mode
- export_mode - Export tokens before deletion