---
title: "Delete training data documents"
method: DELETE
path: "/training-data/{id}/documents"
tags: ["training-data"]
---

# Delete training data documents

`DELETE /training-data/{id}/documents`

Removes documents from a training data configuration by document ID or external ID.

**Rate limit:** 30 requests per minute

## Path parameters

- `id` string, required

## Query parameters

- `document_ids` string[]
- `external_ids` string[]

## Response `200`

- DeleteTrainingDataDocumentsResponseBody
  - `deleted_count` integer
  - `request_id` string

## Other responses

- `400` — The request was invalid or could not be completed.
- `403` — The authenticated caller or organization is not allowed to access this endpoint or operation.
- `404`
- `500` — An unexpected internal error occurred.

## Changes

- **2026-08-28** `fe3adb90ea45` — 1 info
  - added the non-success response with the status `403`

[Change history](https://skmtc.dev/usepylon/apis/pylon-api/changes/training-data/:id/documents/delete.md)

---

[API](https://skmtc.dev/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.dev/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usepylon/pylon-api/revisions/7b12ab92de27/schema)
