Skip to main content
DELETE
/
knowledge
/
delete
/
{source_id}
curl -X DELETE https://api.thinnest.ai/knowledge/delete/{source_id} \
  -H "Authorization: Bearer $THINNESTAI_API_KEY"
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}
curl -X DELETE https://api.thinnest.ai/knowledge/delete/{source_id} \
  -H "Authorization: Bearer $THINNESTAI_API_KEY"

Path Parameters

source_id
integer
required
The knowledge source ID (from List or Add responses)

Response 204

No content. The source and all its indexed chunks have been permanently deleted.
Warning: This action is irreversible. The agent will no longer be able to retrieve information from this source.

Errors

CodeDescription
401Missing or invalid authentication
404Source not found

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

source_id
string
required

Response

Successful Response