---
title: "Unassign a library from a tenant"
method: DELETE
path: "/tenants/{tenant_id}/libraries/{library_id}"
tags: ["Tenant"]
---

# Unassign a library from a tenant

`DELETE /tenants/{tenant_id}/libraries/{library_id}`

## Request

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

Remove a library assignment from a tenant (library owner who is tenant admin).

## Path parameters

- `library_id` integer, required
- `tenant_id` integer, required: ID of the tenant.

## Query parameters

- `cookie_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Library owner and tenant admin privileges required.
- `404`: The library is not assigned to the tenant.
- `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)
