---
title: "Remove a library member"
method: DELETE
path: "/libraries/{library_id}/members/{user_id}"
tags: ["Library"]
---

# Remove a library member

`DELETE /libraries/{library_id}/members/{user_id}`

Remove a member from the library; owner only unless removing yourself.

## Path parameters

- `library_id` integer, required
- `user_id` integer, required — ID of the member to remove.

## Query parameters

- `cookie_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `400` — Cannot remove the sole owner of the library.
- `401` — Missing or invalid authentication.
- `403` — Caller may not remove this member.
- `404` — No library exists with the given id.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/revisions/b53e89b98c2b/schema)
