Skip to content

Delete a collection

DELETE
/cms/data/{collection}
curl --request DELETE \
--url 'https://api.example.com/cms/data/matches?force=1' \
--header 'API-Key: <API-Key>'

Refused while other collections’ fields point to it. A collection with records needs force=1: its records are then deleted in the background (202). Requires the “Structured data - Delete collection” permission.

collection
required
string

Collection key

Example

matches
force
string
Allowed values: 1

1 to delete the records too

Being deleted with its records

Deleted

Needs an API key linked to a CMS user with the Structured data permission

No such collection or record

Still has records (without force=1), or other collections point to it