---
title: "Delete space"
method: DELETE
path: "/wiki/rest/api/space/{spaceKey}"
tags: ["Space"]
---

# Delete space

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

Permanently deletes a space without sending it to the trash. Note, the space will be deleted in a long running task.
Therefore, the space may not be deleted yet when this method has
returned. Clients should poll the status link that is returned in the
response until the task completes.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
'Admin' permission for the space.

## Path parameters

- `spaceKey` string, required

## Response `202`

Returns a pointer to the status of the space deletion task.

- LongTask
  - `ari` string — the ARI for the long task, based on its ID
  - `id` string, required — a unique identifier for the long task
  - `links` object, required
    - `status` string — The URL to retrive status of long task.

## Other responses

- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `404` — Returned if any of the following is true: - There is no space with the given key. - The calling user does not have permission to delete the space.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/revisions/70088490f406/schema)
