---
type: api
title: Deletes a single Knowledge Base Entry using the `id` field
description: Delete a Knowledge Base Entry by its unique `id`.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-deleteknowledgebaseentry
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-deleteknowledgebaseentry
products:
  - Kibana
---

# Deletes a single Knowledge Base Entry using the `id` field

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

## Paths

- `DELETE` `/api/security_ai_assistant/knowledge_base/entries/{id}`

#### Path parameters

- `id` (string · format: nonempty · min length: 1) — required
  The unique identifier (`id`) of the Knowledge Base Entry to delete.
  Example: `12345`

## Description

Delete a Knowledge Base Entry by its unique `id`.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Responses

#### `200`

Successful request returning the `id` of the deleted Knowledge Base Entry.

`application/json`

- `id` (string · format: nonempty · min length: 1)
  A string that does not contain only whitespace characters.
#### `400`

Bad Request response.

`application/json`

- `error` (string)
  Error type or category.
- `message` (string)
  Detailed error message.
- `statusCode` (number)
  HTTP status code of the error.
## Code examples

#### curl

```curl
curl \
 --request DELETE 'http://localhost:5601/api/security_ai_assistant/knowledge_base/entries/12345' \
 --header "Authorization: $API_KEY"
```

## Response examples

#### Delete knowledge base entry response200

```json
{
  "id": "12345",
  "message": "Knowledge Base Entry successfully deleted."
}
```

#### Delete knowledge base entry response400

```json
{
  "error": "Not Found",
  "message": "No Knowledge Base Entry found with the provided \u0060id\u0060."
}
```

