---
title: "Remove members from an org unit"
method: DELETE
path: "/v2/org-units/{orgUnitId}/members"
tags: ["Org units"]
---

# Remove members from an org unit

`DELETE /v2/org-units/{orgUnitId}/members`

## Request

- Base URL: `https://api.zenzap.co`
- URL: `https://api.zenzap.co/v2/org-units/{orgUnitId}/members`
- Auth: one of:
  - HTTP bearer and API key in header `X-Signature`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.zenzap.co/oauth/token` scopes: `org_unit:write`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/org-units/:orgUnitId/members/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove one or more members from an org unit.

**Limits:** Maximum 5 members per request; duplicates are removed.

**Behavior:** Members not in the unit are silently ignored.

**Rate limit:** 1 request per minute per bot, shared with the add-members endpoint
(returns 429 if exceeded).

**Org-unit restriction:** If your organization restricts communication to within org units,
your bot must be a member of the org unit; otherwise a 404 is returned. A bot that does not
belong to any org unit cannot access any of them (every org unit returns 404).

## Path parameters

- `orgUnitId` string, uuid, required

## Headers

- `X-Signature` string
- `X-Timestamp` integer

## Request body

- OrgUnitMemberRemoveRequest
  - `memberIds` string[], required: Member IDs to remove (max 5). Members not in the unit are ignored. Duplicates are removed.

## Response `200`

Members removed successfully

- OrgUnitMemberUpdateResponse
  - `id` string, uuid: The org unit ID
  - `memberIds` string[]: Updated member profile IDs in the org unit (bot members use the `b@<uuid>` form)

## Other responses

- `400`: Bad request - invalid input
- `401`: Unauthorized - invalid or missing API token
- `404`: Resource not found
- `429`: Rate limit exceeded (1 request per minute per bot, shared with add members)
- `500`: Internal server error

---

[API](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api.md) - [All operations](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/revisions/37faae2c2036?raw)
