---
title: "Remove a team membership"
method: DELETE
path: "/team_memberships/{id}"
tags: ["team_memberships"]
---

# Remove a team membership

`DELETE /team_memberships/{id}`

Remove a team membership. Access is only available to administrators or leaders of the associated team.
**Access policy**: administrator or leaders of the associated team

## Path parameters

- `id` integer, required

## Response `204`

Success

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — TeamMembership not found
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
