---
title: "Delete API key for service account"
method: DELETE
path: "/service-accounts/{idOrName}/api-keys"
---

# Delete API key for service account

`DELETE /service-accounts/{idOrName}/api-keys`

Revoke an API key bound to a service account. Team admin only.

## Path parameters

- `idOrName` string, required — The ID or name of the service account.

## Request body

- DeleteServiceAccountAPIKeyParams
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `identifier` string, required — The API key identifier (with or without the 'sk-' prefix).

## Response `204`

No Content

## Other responses

- `default` — Error

---

[API](https://skmtc.net/tower/apis/tower-api.md) · [All operations](https://skmtc.net/tower/apis/tower-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tower/tower-api/revisions/0e42b0fb26d9/schema)
