Documentation menu
styles
DELETE/styles/{spec}
API key required, sent as Authorization: Bearer snk_… or ?api_key=snk_….
What it does
Same ownership rule as publishing (check_publish_allowed), taken
INSIDE the lock. Deletion breaks every map still embedding one of the
style's capability URLs: that is the owner's call to make, and it is
the only way the "immutable versions are kept forever" storage story
stays bounded now that creation is capped rather than unlimited.
Call it
bash
curl -fsS -X DELETE "https://api.mapmap.ai/styles/{spec}" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Required | Description |
|---|---|---|---|
| spec | path | yes | Style id |
Responses
204Style and all versions removed
403Not the style's owner
404Hosted styles not configured or unknown style
Error bodies follow the shared problem model documented on API conventions.
Also under styles
Generated from https://api.mapmap.ai/openapi.json on 2026-09-17 · operationId delete_style