Skip to main content
Training Data

Delete a training file

Removes a training file from the workspace and attempts search-index cleanup. In-flight answers may already contain earlier knowledge.

DELETE
/v2/training_data/files/{id}
Authorizationstringheaderrequired

API key as Bearer token. Use: Authorization: Bearer sk_...

idstringrequired

The training file ID

Example: 67ec1234abcd5678ef901234
Featurebase-Versionenum<string>header

API version for this request. Defaults to your organization's configured API version if not specified.

Available options: 2026-08-19.orbit, 2026-01-01.nova, 2025-12-12.clover
Example: 2026-08-19.orbit

Response

application/json

Success

deletedenum<boolean>required

Indicates the resource was deleted

Available options: true
Example: true
idstringrequired

ID of the deleted training file

Example: 67ec1234abcd5678ef901234
objectenum<string>required

Object type identifier

Available options: training_file
Example: training_file