Spaces method and path for this operation:
delete /s/{space_id}/api/cases/{caseId}/attachments
Refer to Spaces for more information.
Deletes all attachments from a case. Attached files 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 case.
DELETE
/api/cases/{caseId}/attachments
curl \
--request DELETE 'https://localhost:5601/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/attachments' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: string"
Response examples (401)
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "Unauthorized to access cases",
"statusCode": 403
}
Response examples (404)
{
"error": "Not Found",
"message": "No attachments found for case 293f1bc0-74f6-11ea-b83a-553aecdb28b6.",
"statusCode": 404
}