Skip to main content
DELETE
/
kb
/
files
Delete a file from a knowledge base
curl --request DELETE \
  --url https://asteragents.com/api/kb/files \
  --header 'Authorization: Bearer <token>'
{
  "success": true
}

Authorizations

Authorization
string
header
required

JWT token from Clerk authentication.

Must be from a user with org:admin role.

Query Parameters

kbId
integer
required

The ID of the knowledge base

Example:

123

fileId
integer
required

The ID of the file record (not the UUID)

Example:

456

Response

File deleted successfully

success
boolean
Example:

true