Spaces method and path for this operation:
delete /s/{space_id}/api/cases/{caseId}/comments
Refer to Spaces for more information.
Deletes all comments and alerts from a case. The files of any file attachments are also deleted. You must have all privileges for the Cases feature in the Management, Observability, or Security section of the Kibana feature privileges, depending on the owner of the cases you're deleting.
DELETE
/api/cases/{caseId}/comments
curl
curl \
--request DELETE 'https://localhost:5601/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/comments' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
DELETE kbn:/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/comments
Response examples (401)
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}