Skip to main content
DELETE
Delete Mode

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, editor can write; viewer is 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

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
This operation is irreversible. All data will be permanently deleted. Export tokens before deletion if you need a backup.

Restrictions

Cannot Delete Last Mode

Solution: Create a new mode before deleting:

Best Practices

Export Before Deletion

Next Steps

Export Mode

Export before deletion

Create Mode

Create a new mode