---
title: "Remove members from an assistant"
method: DELETE
path: "/assistants/{assistant_id}/members"
tags: ["Assistant"]
---

# Remove members from an assistant

`DELETE /assistants/{assistant_id}/members`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/assistants/{assistant_id}/members`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/assistants/:assistant_id/members/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove one or more users from the assistant's membership.

## Path parameters

- `assistant_id` integer, required

## Query parameters

- `cookie_name` string, nullable

## Request body

- AssistantMembersIn
  - `user_ids` integer[], required: IDs of the users to add or remove as members.

## Response `204`

Successful Response

## Other responses

- `400`: One or more given users are not members of the assistant.
- `401`: Missing or invalid authentication.
- `403`: Not the creator of this assistant.
- `404`: No assistant exists with the given id.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
