---
title: "DELETE /model-hub/knowledge-base/files/"
method: DELETE
path: "/model-hub/knowledge-base/files/"
tags: ["model-hub"]
---

# DELETE /model-hub/knowledge-base/files/

`DELETE /model-hub/knowledge-base/files/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/knowledge-base/files/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- LegacyKnowledgeBaseFileDeleteRequest
  - `kb_id` string, uuid, nullable
  - `delete_all` boolean
  - `file_ids` string[]
  - `excluded_file_ids` string[]
  - `file_names` string[]

## Response `200`

OK

- ModelHubStringResultResponse
  - `status` boolean, required
  - `result` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
