---
title: "Leave a library"
method: DELETE
path: "/libraries/{library_id}/remove/me"
tags: ["Library"]
---

# Leave a library

`DELETE /libraries/{library_id}/remove/me`

## Request

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

Remove the caller from the library's members.

## Path parameters

- `library_id` integer, required

## Query parameters

- `cookie_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `400`: Cannot leave while you are the sole owner of the library.
- `401`: Missing or invalid authentication.
- `403`: Caller is not a member of this library.
- `404`: No library 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)
