Skip to main content
POST
/
api
/
v2
/
clear-database
Delete your BloodHound data
curl --request POST \
  --url {protocol}://{ApiServer}/api/v2/clear-database \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "deleteCollectedGraphData": true,
  "deleteFileIngestHistory": true,
  "deleteDataQualityHistory": true,
  "deleteAssetGroupSelectors": [
    123
  ]
}'
"[this request has no response data]"
Applies to BloodHound Enterprise and CE

Authorizations

Authorization
string
header
required

Authorization: Bearer $JWT_TOKEN

Headers

Prefer
integer
default:0

Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.

Required range: x >= 0

Body

application/json
deleteCollectedGraphData
boolean
deleteFileIngestHistory
boolean
deleteDataQualityHistory
boolean
deleteAssetGroupSelectors
integer[]

Response

No Content This response will contain no response body.

The response is of type string.