---
type: api
title: Delete a list item
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-deletelistitem
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-deletelistitem
products:
  - Kibana
---

# Delete a list item

Authentication: required

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

## Paths

- `DELETE` `/api/lists/items`
- `DELETE` `/s/{space_id}/api/lists/items`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Description

Delete a list item using its `id`, or its `list_id` and `value` fields.

## Query string parameters

- `id` (string · format: nonempty · min length: 1) — optional
  Required if `list_id` and `value` are not specified
- `list_id` (string · format: nonempty · min length: 1) — optional
  Required if `id` is not specified
- `value` (string) — optional
  Required if `id` is not specified
- `refresh` (enum · default: false) — optional
  Determines when changes made by the request are made visible to search
  Values: `true`, `false`, `wait_for`

## Responses

#### `200`

Successful response

`application/json`

One of:
- **[]ListItem**
  - `_version` (string)
  - `@timestamp` (string · format: date-time)
  - `created_at` (string · format: date-time)
  - `created_by` (string)
  - `id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `list_id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `meta` (object)
  - `tie_breaker_id` (string)
  - `type` (enum)
    Values: `binary`, `boolean`, `byte`, `date`, `date_nanos`, `date_range`, `double`, `double_range`, `float`, `float_range`, `geo_point`, `geo_shape`, `half_float`, `integer`, `integer_range`, `ip`, `ip_range`, `keyword`, `long`, `long_range`, `shape`, `short`, `text`
  - `updated_at` (string · format: date-time)
  - `updated_by` (string)
  - `value` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
- **ListItem**
  - `_version` (string)
  - `@timestamp` (string · format: date-time)
  - `created_at` (string · format: date-time)
  - `created_by` (string)
  - `id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `list_id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `meta` (object)
  - `tie_breaker_id` (string)
  - `type` (enum)
    Values: `binary`, `boolean`, `byte`, `date`, `date_nanos`, `date_range`, `double`, `double_range`, `float`, `float_range`, `geo_point`, `geo_shape`, `half_float`, `integer`, `integer_range`, `ip`, `ip_range`, `keyword`, `long`, `long_range`, `shape`, `short`, `text`
  - `updated_at` (string · format: date-time)
  - `updated_by` (string)
  - `value` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
#### `400`

Invalid input data response

`application/json`

One of:
- **PlatformErrorResponse**
  - `error` (string)
  - `message` (string)
  - `statusCode` (integer)
- **SiemErrorResponse**
  - `message` (string)
  - `status_code` (integer)
#### `401`

Unsuccessful authentication response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `403`

Not enough privileges response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `404`

List item not found response

`application/json`

- `message` (string)
- `status_code` (integer)
#### `500`

Internal server error response

`application/json`

- `message` (string)
- `status_code` (integer)
## Code examples

#### Console

```console
DELETE kbn:/api/lists/items
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/lists/items" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "_version": "string",
  "@timestamp": "string",
  "created_at": "string",
  "created_by": "string",
  "id": "string",
  "list_id": "string",
  "meta": {},
  "tie_breaker_id": "string",
  "type": "binary",
  "updated_at": "string",
  "updated_by": "string",
  "value": "string"
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

#### 401

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

#### 403

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

#### 404

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "message": "string",
  "status_code": 0
}
```

#### 500

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "message": "string",
  "status_code": 0
}
```

