---
title: "Delete an API user"
method: DELETE
path: "/api-users/{userId}"
tags: ["Users"]
---

# Delete an API user

`DELETE /api-users/{userId}`

Permanently delete an API user and invalidate any access
tokens issued to them. Use this when an integration is
retired or its credentials are believed to be compromised.

Requires the caller's site-user to hold the `users:manage`
permission on a site that the API user belongs to. The
operation cannot be undone.

## Response `204`

The API user was deleted.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
