Delete Mode
Modes
Delete Mode
Permanently delete a mode and all its tokens
DELETE
Delete Mode
Documentation Index
Fetch the complete documentation index at: https://docs.tokencraft.dev/llms.txt
Use this file to discover all available pages before exploring further.
Delete Mode
Permanently deletes a mode and all its associated tokens. This action cannot be undone.Write access policy - This endpoint requires the
write:tokens scope.- TEAM-owned workspace:
owner,admin,editorcan write;vieweris blocked (403). - Non-TEAM workspace: only the workspace owner can write.
- If the workspace owner plan has no API write access (for example FREE), write is blocked.
Endpoint
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Tokenset ID |
modeId | string | Yes | Mode ID |
Response
Status:200 OK
Examples
Error Responses
400 Bad Request
A tokenset must always have at least one mode. You cannot delete the last remaining mode.
404 Not Found
Cascade Deletion
When a mode is deleted:- ✅ All tokens in the mode are deleted
Restrictions
Cannot Delete Last Mode
Best Practices
Export Before Deletion
Next Steps
Export Mode
Export before deletion
Create Mode
Create a new mode