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

# Remove a library from an assistant

`DELETE /assistants/{assistant_id}/libraries/{library_id}`

## Request

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

Disables a library from an assistant by removing the association

## Path parameters

- `assistant_id` integer, required
- `library_id` integer, required: ID of the library to disable.

## Query parameters

- `cookie_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `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)
