---
title: "Delete Text Document"
method: DELETE
path: "/api/scraping/text-document/{bot_id}"
tags: ["Scraping"]
---

# Delete Text Document

`DELETE /api/scraping/text-document/{bot_id}`

Delete text documents for a bot.

## Path parameters

- `bot_id` string, uuid, required

## Request body

- KnowledgeBaseDeleteTextSchema — Schema for deleting text documents from the knowledge base.
  - `text_document_ids` string[], required — List of text document IDs to be deleted.

## Response `200`

Successful Response

- HttpResponseSchema — HTTP Response Schema.
  - `message_code` integer, required — Numeric code indicating the type of message or response.
  - `message` string, required — Human-readable message providing additional context about the response.
  - `data` unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
