---
type: api
title: Delete the Entity Engine
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-deleteentityengine
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-deleteentityengine
products:
  - Kibana
---

# Delete the Entity Engine

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

## Paths

- `DELETE` `/api/entity_store/engines/{entityType}`
- `DELETE` `/s/{space_id}/api/entity_store/engines/{entityType}`

#### Path parameters

- `entityType` (enum) — required
  The entity type of the engine (either 'user' or 'host').
  Values: `user`, `host`, `service`

## Description

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

## 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>`

## Query string parameters

- `data` (boolean) — optional
  Control flag to also delete the entity data.

## Response

Successful response

`application/json`

- `deleted` (boolean)
  Whether the engine was successfully deleted.
## Code examples

#### Console

```console
DELETE kbn:/api/entity_store/engines/user
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/entity_store/engines/user" \
  -H "Authorization: ApiKey ${API_KEY}"
```

