---
title: "Delete Api Credential"
method: DELETE
path: "/api-credentials/{id}"
tags: ["ApiCredentials"]
---

# Delete Api Credential

`DELETE /api-credentials/{id}`

## Request

- Base URL: `https://api.purplegrain.com/api/v1`
- URL: `https://api.purplegrain.com/api/v1/api-credentials/{id}`
- Auth: HTTP bearer

Delete the credential and revoke every access token it ever minted
(immediate). Requires owner-level rights on the owning organization
(or being the owning user).

## Path parameters

- `id` string, required

## Response `204`

Deleted — all its tokens are dead.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/purplegrain/apis/purple-grain-api.md) · [All operations](https://skmtc.dev/purplegrain/apis/purple-grain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/purplegrain/apis/purple-grain-api/revisions/4bedbc1c784c?raw)
