---
ai:
  exclude: true
search:
  tags:
    - Category
    - DELETE
seo:
  description: >-
    Removes a category from a space,… Reference for the DELETE
    /rest/api/space/{spaceKey}/category/{categoryName} endpoint in the
    Confluence Data Center API.
sidebar:
  label: Remove a category from a space
  badge: DELETE
title: Remove a category from a space
type: openapi-operation
---
Removes a category from a space, identified by spaceKey.

Example request URI:
`https://example.com/confluence/rest/api/space/TEST/category/example-category`

`DELETE /rest/api/space/{spaceKey}/category/{categoryName}`

**Responses**

- `204` — Returned if the category is removed successfully.
- `401` — Returned if the calling user is not authenticated.
- `403` — Returned if the calling user does not have permission to edit the Space.
- `404` — Returned if there is no space with the given key
