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

# Delete the Privilege Monitoring Engine

deprecated

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

## Paths

- `DELETE` `/api/entity_analytics/monitoring/engine/delete`
- `DELETE` `/s/{space_id}/api/entity_analytics/monitoring/engine/delete`

## Description

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

**Deprecated in 9.4.0.** Deletes the Privilege Monitoring Engine and optionally removes all associated privileged user data.

## 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 · default: false) — optional
  Whether to delete all the privileged user data

## Response

Successful response

`application/json`

- `deleted` (boolean)
## Code examples

#### Console

```console
DELETE kbn:/api/entity_analytics/monitoring/engine/delete
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/entity_analytics/monitoring/engine/delete" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Engine deleted successfully

```json
{
  "deleted": true
}
```

