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

# Delete the Entity Engine

Authentication: required

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

## Paths

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

#### 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.
- `entityType` (enum) — required
  The entity type of the engine (either 'user' or 'host').
  Values: `user`, `host`, `service`

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

## 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
{
  "deleted": false
}
```

