---
title: "Delete category"
method: DELETE
path: "/v1/categories/{identifier}"
tags: ["Categories"]
---

# Delete category

`DELETE /v1/categories/{identifier}`

Delete a category by ID or slug. Requires a private API key. Cannot delete a category that has posts assigned to it.

## Path parameters

- `identifier` string, required — Category ID or slug

## Response `200`

Category deleted successfully

- DeleteResponse
  - `id` string, required

## Other responses

- `400` — Category has posts assigned to it
- `403` — Public API key used for write operation
- `404` — Category not found
- `500` — Server error

---

[API](https://skmtc.dev/marblecms/apis/marble-api.md) · [All operations](https://skmtc.dev/marblecms/apis/marble-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marblecms/marble-api/revisions/ce3a22722c0e/schema)
