---
title: "Remove a member"
method: DELETE
path: "/team/members/{userId}"
tags: ["Team"]
---

# Remove a member

`DELETE /team/members/{userId}`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/team/members/{userId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Removes the membership, not the user account.

## Response `204`

Member removed

## Other responses

- `404`: The resource does not exist in the API key's organization.

---

[API](https://skmtc.dev/flogpt/apis/flogpt-organization-api.md) · [All operations](https://skmtc.dev/flogpt/apis/flogpt-organization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flogpt/apis/flogpt-organization-api/revisions/c3a6cff76797?raw)
