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

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