Skip to content

Discard a knowledge base item

DELETE
/api/v1/knowledge_base_items/{id}

Soft delete. The item is marked discarded rather than destroyed and no longer appears in list, search, or answer generation.

NameType
id
required
string

The record’s prefixed ID

200

A confirmation message

Response body
Media typeapplication/json
object
message
string

403

Insufficient scope, role, or credits

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

404

No such record in this account

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation