---
title: "Delete Workspace Membership"
method: DELETE
path: "/workspaces/{workspace_id}/memberships/{user_id}"
tags: ["workspaces"]
---

# Delete Workspace Membership

`DELETE /workspaces/{workspace_id}/memberships/{user_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/memberships/{user_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Delete a workspace membership.

## Path parameters

- `workspace_id` string, uuid, required
- `user_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `409`: User remains a member through a group.
- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
