EndpointsCollections
Delete collection
Deletes the collection (soft-delete). Routes inside it are not deleted. PAT callers must set X-Routess-Confirm: true.
DELETE
header
AuthorizationBearer <token>Personal access token for non-browser clients. Mint at Settings → API Tokens. Carries one of two scopes: read (list/get Routes, export GPX, profile) or write (read plus metadata-only mutations on owned routes and on preferences). Blocked from /admin/* and from DELETE /users/me. Destructive operations require X-Routess-Confirm: true and return 428 PRECONDITION_REQUIRED otherwise. See ADR-0022 and ADR-0023.
id*numberCollection ID
X-Routess-Confirm?stringRequired as true for PAT callers. Cookie sessions ignore this header.
response?unknownapplication/jsoncurl -X DELETE 'https://api.routess.com/collections/0'{ "success": true, "message": "Collection deleted successfully"}