---
ai:
  exclude: true
search:
  tags:
    - Space
    - DELETE
seo:
  description: >-
    Deletes a Space. The space is deleted in a long running task,… Reference for
    the DELETE /rest/api/space/{spaceKey} endpoint in the Confluence Data Center
    API.
sidebar:
  label: Delete Space
  badge: DELETE
title: Delete Space
type: openapi-operation
---
Deletes a Space. The space is deleted in a long running task, so the space cannot be considered deleted when this resource returns. Clients can follow the status link in the response and poll it until the task completes.

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

**Responses**

- `202` — Returns a pointer to the status of the space-deletion task.
- `404` — Returned if there is no space with the given key, or if the calling user does not have permission to delete it.

Response example, 202:

```json
{
  "id": "string",
  "links": {
    "result": "http://localhost:8080/confluence/rest/api/longtask/123/result",
    "status": "http://localhost:8080/confluence/rest/api/longtask/123/status"
  },
  "statusPath": "status",
  "resultPath": "result"
}
```
