---
type: api
title: Uninstall the Entity Store
description: Uninstall the Entity Store, removing engines and associated resources for the specified entity types.<br/><br/>[Required authorization] Route required privileges: securitySolution.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-post-security-entity-store-uninstall
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-post-security-entity-store-uninstall
products:
  - Kibana
---

# Uninstall the Entity Store

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

## Paths

- `POST` `/api/security/entity_store/uninstall`

## Description

Uninstall the Entity Store, removing engines and associated resources for the specified entity types.

## Required authorization

- Privileges: `securitySolution`

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

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Request body

`application/json`

- `entityTypes` (enum[] · default: [
  "user",
  "host",
  "service",
  "generic"
]) — optional
  Entity types to uninstall. Defaults to all installed types.
  Values: `user`, `host`, `service`, `generic`

## Response

Indicates a successful response.

`application/json`

## Code examples

#### Console

```console
POST kbn://api/security/entity_store/uninstall
{
  "entityTypes": ["user", "host", "service", "generic"]
}
```

#### curl

```curl
curl -X POST -H "kbn-xsrf: true" -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"entityTypes":["user","host","service","generic"]}' \
  "${KIBANA_URL}/api/security/entity_store/uninstall"
```

## Response examples

#### Entity Store uninstalled

The specified entity engines were successfully uninstalled.

```json
{
  "ok": true
}
```

