---
title: "Delete a team membership"
method: DELETE
path: "/api/public/v1/team-membership/{id}"
tags: ["TeamMembershipResource"]
---

# Delete a team membership

`DELETE /api/public/v1/team-membership/{id}`

## Request

- Base URL: `https://allquiet.app` (the document declares no server; this is the origin it was published from)
- URL: `https://allquiet.app/api/public/v1/team-membership/{id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/allquiet/apis/all-quiet-public-api/docs/api/public/v1/team-membership/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove a user from a team.

**Required API key permissions**

- **Scope:** `team-memberships:delete`
- **Accepted key types:** organization API key (org-wide), organization API key (team-scoped), personal access token (org-wide), personal access token (team-scoped)
- **Access:** Operates on a single organization. Pass organizationId when your API key spans multiple organizations.
- **Organization role (user-linked keys only):** Member when the user has an explicit organization membership. Explicit organization membership is not required; team-based access applies and effective access is gated by the required team role.
- **Required team role (user-linked keys only):** Administrator
- Organization API keys are not subject to organization or team role checks.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `organizationId` string, uuid

## Response `204`

No Content

---

[API](https://skmtc.dev/allquiet/apis/all-quiet-public-api.md) - [All operations](https://skmtc.dev/allquiet/apis/all-quiet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/allquiet/apis/all-quiet-public-api/revisions/a69168a82f2c?raw)
