Skip to main content
DELETE
/
api
/
document
/
delete
Delete multiple documents
curl --request DELETE \
  --url https://cite.petal.org/api/document/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "document_ids": [
    123
  ]
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.petal.org/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
document_ids
integer[]
required

Unique IDs of Documents to delete

Response

OK

success
boolean
default:true