# Remove a member

`DELETE /v1/orgs/{org_id}/members/{member_id}`

Requires role member or higher.

Owners remove anyone; any member may remove themselves.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `member` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_id` | path | string | yes |  |
| `member_id` | path | string | yes |  |

## Responses

### 204

No content

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 403

forbidden: only an owner can remove other members. csrf-origin-rejected: a cookie-authenticated change from an origin outside the web app.

Problem type: [forbidden](https://docs.dlogify.com/errors/forbidden.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 409

conflict: an organization must keep at least one owner.

Problem type: [conflict](https://docs.dlogify.com/errors/conflict.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X DELETE "https://api.dlogify.com/v1/orgs/{org_id}/members/{member_id}" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/members/removeMember
