---
title: "Detach a managed user"
method: DELETE
path: "/workspace/users/{userId}"
tags: ["Workspace"]
---

# Detach a managed user

`DELETE /workspace/users/{userId}`

Remove a user from your workspace. The user account is not deleted,
but is no longer managed by your workspace.

**Requires Workspace access - contact serge@publora.com to enable.**

## Path parameters

- `userId` string, required

## Response `200`

User detached

- object
  - `success` boolean

## Other responses

- `400` — Invalid userId
- `403` — Workspace access not enabled
- `404` — User not found or not managed by this key
- `500` — Server error

---

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