Skip to content

Discard a source

DELETE
/api/v1/sources/{id}

Soft delete. The source and its extracted passages are marked discarded and stop being used as references for new answers.

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