---
type: api
title: Delete allocator metadata item
description: Removes a single item from the allocator metadata.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-delete-allocator-metadata-item
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-delete-allocator-metadata-item
products:
  - Elastic Cloud Enterprise
---

# Delete allocator metadata item

## Paths

- `DELETE` `/platform/infrastructure/allocators/{allocator_id}/metadata/{key}`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#apikey)

#### Path Parameters

- `allocator_id` (string)
  The allocator identifier.
- `key` (string)
  The metadata item key.

## Description

Removes a single item from the allocator metadata.

## Query String Parameters

- `version` (string)
  Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.

## Responses

#### `200`

The allocator metadata was successfully changed (the updated JSON is returned)

`application/json`

Type: `[] MetadataItem`

- `key` (string)
  The metadata field name
- `value` (string)
  The metadata value
#### `404`

The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)

`application/json`

- `errors` ([] BasicFailedReplyElement)
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` ([] string)
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response Headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code Examples

#### Console

```console
DELETE /platform/infrastructure/allocators/{allocator_id}/metadata/{key}
```

#### curl

```curl
curl -X DELETE "/platform/infrastructure/allocators/{allocator_id}/metadata/{key}"
```

