---
title: "Delete a Metadata Index"
method: DELETE
path: "/v1/settings/metadata-indexes/entities/{entity_name}/key/{index_key}"
tags: ["Metadata Indexes API"]
---

# Delete a Metadata Index

`DELETE /v1/settings/metadata-indexes/entities/{entity_name}/key/{index_key}`

## Request

- Base URL: `https://identity.sandbox.lerian.net`
- URL: `https://identity.sandbox.lerian.net/v1/settings/metadata-indexes/entities/{entity_name}/key/{index_key}`
- Auth: none required
- TypeScript: <https://skmtc.dev/lerian/apis/identity-plugin/docs/v1/settings/metadata-indexes/entities/:entity_name/key/:index_key/delete.ts> (a function with typed inputs; its response is checked against the schema)

Use this endpoint to delete a metadata index by specifying the entity name and the index key. The index will be permanently removed.

## Path parameters

- `entity_name` 'organization' | 'ledger' | 'asset' | 'segment' | 'portfolio' | 'account' | 'transaction' | 'operation' | 'account_type' | 'operation_route' | 'transaction_route', required
- `index_key` string, required

## Headers

- `Content-Type` string
- `X-Request-Id` string, uuid
- `Authorization` string

## Response `204`

Indicates that the metadata index was successfully deleted.

## Other responses

- `400`
- `401`: Unauthorized
- `403`: Forbidden
- `404`
- `500`: Internal Server Error

---

[API](https://skmtc.dev/lerian/apis/identity-plugin.md) - [All operations](https://skmtc.dev/lerian/apis/identity-plugin/llms.txt) - [OpenAPI document](https://skmtc.dev/lerian/apis/identity-plugin/revisions/25daba385532?raw)
