Repository navigation
Description
Description
PR elastic/kibana#298188 adds a new cases.deleteAttachments workflow step to Kibana Cases. It deletes 1 or more attachments from a case in a single request. It ships in 9.6.0 and Serverless.
The step checks every ID first. If any ID isn't on the case, the step fails and deletes nothing. Each deletion shows in the case activity.
The step takes the attachment's own id from cases.getAllAttachments. It does not take attachmentId, which points to the alert, event, or saved object the attachment references.
The same PR lets the Cases agent in Agent Builder delete case attachments. The agent asks the user to confirm before it deletes.
Doc updates
Add a new step cases.deleteAttachments next to cases.addAttachments under the Attach content section.
Input
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
| case_id | with | string | Yes | Case ID. |
| ids | with | string[] | Yes | 1 to 100 attachment IDs. Use the id from cases.getAllAttachments, not the attachmentId. |
| include_related | with | boolean | No | Also delete attachments that came with the deleted ones, such as the alerts of an attack. Default: true. |
Output
| Field | Type | Description |
|---|---|---|
| case_id | string | The case ID from the input. |
| ids | string[] | The IDs that were deleted. |
The step fails if an ID isn't on the case or the user lacks permission to delete attachments.
- name: get_attachments
type: cases.getAllAttachments
with:
case_id: "${{ steps.create_case.output.case.id }}"
- name: delete_oldest_attachment
type: cases.deleteAttachments
if: "${{ steps.get_attachments.output.attachments.length > 0 }}"
with:
case_id: "${{ steps.create_case.output.case.id }}"
ids:
- "${{ steps.get_attachments.output.attachments[0].id }}"Resources
Which deployment methods does this change impact?
Unknown
Feature differences
No difference
What Elastic Stack release is this request related to?
9.6.0
Serverless release
October 26, 2026
Collaboration model
Unknown
Point of contact.
Main contact: @christineweng
Stakeholders:
Activity
github-actions commentedon Oct 26, 2026
Elastic Docs AI Menu
Check one box to run an AI workflow for this issue.
docs-scope). Status: not started.Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.
[-][Internal]:[Cases/Workflows][9.6 & Serverless] Add delete attachments workflow step[/-][+][Security][Cases][Workflows][9.6 & Serverless] Add delete attachments workflow step[/+]nastasha-solomon commentedon Nov 18, 2026
Dev review checklist
Accuracy
Completeness
Wrap up
dev-validatedlabel.If you can't confirm an item, leave a comment saying what's unconfirmed and don't apply the label yet.