Skip to main content
DELETE
/
document
/
delete-many
Delete documents
curl --request DELETE \
  --url https://app.myhero.so/document/delete-many \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "data": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

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

Soft-deletes the given documents and all of their descendants by setting isDeleted: true. Returns the full list of affected document _ids, or false if the operation fails.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
ids
string[]
required
Minimum array length: 1
Minimum string length: 1

Response

200 response

data
required