---
type: api
title: Delete a space
description: When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-delete-spaces-space-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-delete-spaces-space-id
products:
  - Kibana
---

# Delete a space

- Server: `https://{kibana_url}`

## Paths

- `DELETE` `/api/spaces/space/{id}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#basicauth)

#### Path Parameters

- `id` (string)
  The space identifier.

## Description

When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone.

## Responses

#### `204`

Indicates a successful call.

#### `404`

Indicates that the request failed.

## Code Examples

#### Console

```console
DELETE /api/spaces/space/{id}
```

#### curl

```curl
curl -X DELETE "https://{kibana_url}/api/spaces/space/{id}" \
  -H "kbn-xsrf: true"
```

