---
title: "Remove a user"
method: DELETE
path: "/api/users/{userId}"
tags: ["User"]
---

# Remove a user

`DELETE /api/users/{userId}`

Removes a user from the organisation, deleting their memberships, invitations, and sessions.

## Path parameters

- `userId` string, uuid, required

## Response `200`

Confirmation that the user was removed

- object — Confirmation that the user was removed
  - `status` 'ok', required — Operation status

---

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