---
title: "Remove a user"
method: DELETE
path: "/api/v1/auth/users/{pubkey}"
tags: ["auth"]
---

# Remove a user

`DELETE /api/v1/auth/users/{pubkey}`

Remove a registered user by public key.
Requires admin permissions.

## Path parameters

- `pubkey` string, required

## Response `200`

User removed

- NATSEnvelope — Standard NATS proxy response envelope. On success, `result` contains the response data. On error, `error` contains a message string.
  - `result` unknown
  - `error` string — Error message (present only on failure)

## Other responses

- `400` — Missing pubkey parameter
- `502` — NATS communication error — farmer unreachable or returned an error

---

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