Spaces method and path for this operation:
delete /s/{space_id}/api/risk_score/engine/dangerously_delete_data
Refer to Spaces for more information.
Stops risk scoring for the space. Removes the risk score data stream, the lookup index and its template, the risk engine configuration, and the risk score maintainer task, and clears risk fields stored on entity documents.
DELETE
/api/risk_score/engine/dangerously_delete_data
curl \
--request DELETE 'https://localhost:5601/api/risk_score/engine/dangerously_delete_data' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"cleanup_successful": true
}
Response examples (400)
{
"message": "Task Manager is unavailable, but is required by the risk engine. Please enable the taskManager plugin and try again.",
"status_code": 400
}
Response examples (default)
{
"cleanup_successful": false,
"errors": [
{
"error": "Risk engine is disabled or deleted already.",
"seq": 1
}
]
}