Delete a case attachment
Spaces method and path for this operation:
<div><span class="operation-verb delete">delete</span> <span class="operation-path">/s/{space_id}/api/cases/{caseId}/attachments/{attachmentId}</span></div>Refer to Spaces for more information.
Deletes a single attachment from a case. If it's a file, the file is also deleted. If it's an attack (security.attack), the alerts it added are also removed from the case, unless they're attached separately or by another attack. 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.
Request
- Base URLhttps://localhost:5601
- URLhttps://localhost:5601/api/cases/{caseId}/attachments/{attachmentId}
- Auth
- API key in header Authorization
- or HTTP basic
Path parameters
The identifier for the case. To retrieve case IDs, use the search cases (_find) API. All non-ASCII characters must be URL encoded.
The ID of the attachment, which is its id field, not attachmentId. To get it, use the find case attachments API.
Headers
Cross-site request forgery protection
Response
Indicates a successful call.
Changes
No operation changes recorded.