---
title: "Delete API key"
method: DELETE
path: "/api/v2/api-key/{id}"
tags: ["service-account"]
---

# Delete API key

`DELETE /api/v2/api-key/{id}`

## Request

- Base URL: `https://central.zerotier.com`
- URL: `https://central.zerotier.com/api/v2/api-key/{id}`
- Auth: HTTP bearer

Permanently revoke and delete an API key. Requests using this key will immediately fail.

## Path parameters

- `id` string, required

## Response `200`

API key deleted

- SuccessMessageResponse
  - `message` string, required: Human-readable confirmation message

## Other responses

- `401`: Missing or invalid authentication token
- `403`: Insufficient permissions
- `500`: Internal server error

---

[API](https://skmtc.dev/zerotier/apis/zerotier-central-v2-api.md) - [All operations](https://skmtc.dev/zerotier/apis/zerotier-central-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zerotier/apis/zerotier-central-v2-api/revisions/b2e7468ad104?raw)
