---
type: api
title: Delete enrollment token
description: Revokes and deletes the enrollment token.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-delete-enrollment-token
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-delete-enrollment-token
products:
  - Elastic Cloud Enterprise
---

# Delete enrollment token

## Paths

- `DELETE` `/platform/configuration/security/enrollment-tokens/{token}`

#### Path parameters

- `token` (string) — required
  The token or token identifier to revoke.

## Description

Revokes and deletes the enrollment token.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Responses

#### `200`

The supplied token has been revoked and can no longer be used to start services on new servers

`application/octet-stream`

Type: `object`

#### `404`

Token not found (code: 'enrollment_tokens.invalid_token_id')

`application/octet-stream`

- `errors` (object[])
  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
## Code examples

#### curl

```curl
curl -X DELETE "${API_URL}/platform/configuration/security/enrollment-tokens/${TOKEN}" \
  -u "${USERNAME}:${PASSWORD}"
```

