---
type: api
title: Delete enrollment token
description: Revokes and deletes the enrollment token.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-delete-enrollment-token
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/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}`

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

#### Path Parameters

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

## Description

Revokes and deletes the enrollment token.

## Responses

#### `200`

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

`application/octet-stream`

Type: `EmptyResponse`

#### `404`

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

`application/octet-stream`

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

#### Console

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

#### curl

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

