Skip to content
Dashboard

Delete a training file

DELETE/v2/training_data/files/{id}

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

Path ParametersExpand Collapse
id: string

The training file ID

Header ParametersExpand Collapse
"Featurebase-Version": optional "2026-08-19.orbit" or "2026-01-01.nova" or "2025-12-12.clover"
One of the following:
"2026-08-19.orbit"
"2026-01-01.nova"
"2025-12-12.clover"
ReturnsExpand Collapse
id: string

ID of the deleted training file

deleted: true

Indicates the resource was deleted

object: "training_file"

Object type identifier

Delete a training file

curl https://do.featurebase.app/v2/training_data/files/$ID \
    -X DELETE \
    -H "Authorization: Bearer $FEATUREBASE_API_KEY"
{
  "id": "67ec1234abcd5678ef901234",
  "deleted": true,
  "object": "training_file"
}
Returns Examples
{
  "id": "67ec1234abcd5678ef901234",
  "deleted": true,
  "object": "training_file"
}