---
type: api
title: Delete cases
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-deletecasedefaultspace
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-deletecasedefaultspace
products:
  - Kibana
---

# Delete cases

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

## Paths

- `DELETE` `/api/cases`
- `DELETE` `/s/{space_id}/api/cases`

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

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

You must have `read` or `all` privileges and the `delete` sub-feature privilege for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're deleting.

## Query String Parameters

- `ids` ([] string)
  The cases that you want to removed. All non-ASCII characters must be URL encoded.

## Responses

#### `204`

Indicates a successful call.

#### `401`

Authorization information is missing or invalid.

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
## Code Examples

#### Console

```console
DELETE /api/cases?ids={ids}
```

#### curl

```curl
curl -X DELETE "https://{kibana_url}/api/cases?ids={ids}" \
  -H "kbn-xsrf: true"
```

