Skip to main content

delete_mode

Permanently deletes a mode and all tokens within it. Cannot delete the last mode in a tokenset.

Tool Schema

Parameters

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:
  1. Is this the only mode in the tokenset?
  2. Are there important tokens in this mode?
  3. 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

  1. Export data first: Consider exporting tokens before deletion
  2. Check token count: Review what tokens exist in the mode
  3. Team communication: Notify team members before deleting shared modes
  4. 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