# Remove a project member

Canonical page: https://docs.ovok.com/api/projects/remove-a-project-member

`DELETE /v1/projects/me/members/{membershipId}`

Removes a Practitioner from your current project.

**Auth:** bearer token of a project admin (`ProjectMembership.admin`).
**Scope:** the caller's project (from the token). A membership of another project answers 404.

## Behaviour

- Deletes the membership and its Practitioner profile. The User is deleted only when it has no other membership in any project.
- All or nothing: if one delete fails, the others are undone and the request fails.
- Removing the last admin of the project is refused.
- The response is `{ "success": true }`.

## Example

```bash
curl -X DELETE 'https://api.sandbox.ovok.com/v1/projects/me/members/c3499c27-2973-0a7f-807e-fb8676a92dcb' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
