Skip to content

50,000 free calls a month, card-free. Get an API key →

Documentation menu
docs / api / delete-styles-spec
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

NameInRequiredDescription
specpathyesStyle 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