---
title: "DELETE /categories/{id}"
method: DELETE
path: "/categories/{id}"
---

# DELETE /categories/{id}

`DELETE /categories/{id}`

## Path parameters

- `id` integer, required

## Response `200`

Deletes an event category and returns its data

- Term
  - `id` integer — The WordPress term ID
  - `name` string — The term name
  - `slug` string — The term slug
  - `taxonomy` string — The taxonomy the term belongs to
  - `description` string — The term description
  - `parent` integer — The term parent term if any
  - `count` integer — The number of posts associated with the term
  - `url` string — The URL to the term archive page
  - `urls` string[] — A list of links to the term own, archive and parent REST URL

## Other responses

- `400` — The event category term ID is missing or does not exist.
- `403` — The current user cannot delete the event category with the specified term ID.
- `410` — The event category with the specified term ID has been deleted already.
- `500` — The event category with the specified term ID could not be deleted.

---

[API](https://skmtc.net/theeventscalendar/apis/the-events-calendar-rest-api.md) · [All operations](https://skmtc.net/theeventscalendar/apis/the-events-calendar-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/theeventscalendar/the-events-calendar-rest-api/revisions/ec2e0a6a611b/schema)
