---
title: "Uninstall the Entity Store"
method: POST
path: "/api/security/entity_store/uninstall"
tags: ["Security entity store"]
---

# Uninstall the Entity Store

`POST /api/security/entity_store/uninstall`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/security/entity_store/uninstall</span></div>

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

Uninstall the Entity Store, removing engines and associated resources for the specified entity types.<br/><br/>[Required authorization] Route required privileges: securitySolution.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `entityTypes` string[] — Entity types to uninstall. Defaults to all installed types.

## Response `200`

Indicates a successful response.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
