---
title: "Delete a library and all of it's document."
method: DELETE
path: "/v1/libraries/{library_id}"
tags: ["beta.libraries"]
---

# Delete a library and all of it's document.

`DELETE /v1/libraries/{library_id}`

Given a library id, deletes it together with all documents that have been uploaded to that library. Warning: the response will change from 200 (returning the deleted library) to 204 No Content in a future version.

## Path parameters

- `library_id` string, uuid, required

## Response `200`

Library deleted (deprecated, will be removed in favor of 204).

- Library
  - `id` string, uuid, required
  - `name` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `owner_id` string, uuid, nullable, required
  - `owner_type` string, required
  - `total_size` integer, required
  - `nb_documents` integer, required
  - `chunk_size` integer, nullable, required
  - `emoji` string, nullable
  - `description` string, nullable
  - `generated_description` string, nullable
  - `explicit_user_members_count` integer, nullable
  - `explicit_workspace_members_count` integer, nullable
  - `org_sharing_role` string, nullable
  - `generated_name` string, nullable — Generated Name

## Other responses

- `204` — Library deleted. This will become the only response in a future version.
- `422` — Validation Error

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/versions/933c4ebdcd72/schema)
