Delete a category by ID or slug. Requires a private API key. Cannot delete a category that has posts assigned to it.
cURL
curl --request DELETE \ --url https://api.marblecms.com/v1/categories/{identifier} \ --header 'Authorization: <api-key>'
{ "id": "cryitfjp5678mn09qrstuvwx" }
Your Marble API key
Category ID or slug
"technology"
Category deleted successfully
"cryitfjp5678mn09qrstuvwx"
Was this page helpful?