---
title: "Leave a team"
method: DELETE
path: "/api/v1/teams/{teamId}/members/me"
tags: ["TeamMembers"]
---

# Leave a team

`DELETE /api/v1/teams/{teamId}/members/me`

## Request

- Base URL: `https://charm.ing`
- URL: `https://charm.ing/api/v1/teams/{teamId}/members/me`
- Auth: API key in cookie `__Secure-better-auth.session_token`

Session cookie required. Personal access tokens are not accepted. Removes the caller’s membership. Refused (relayed verbatim) when the caller is the team’s sole owner.

## Path parameters

- `teamId` string, required

## Response `204`

Left the team.

## Other responses

- `400`: Refused — e.g. the caller is the sole owner.
- `401`: Sign-in required.

---

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