Skip to content

[Security][Cases][Workflows][9.6 & Serverless] Add delete attachments workflow step #9037

In progress

Description

@christineweng

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

PR: elastic/kibana#298188

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

  1. added
    documentation
    on Oct 26, 2026
  2. added
    needs-team
    on Oct 26, 2026
  3. github-actions commented on Oct 26, 2026

    @github-actions
    Contributor

    Elastic Docs AI Menu

    Check one box to run an AI workflow for this issue.

    • Scope the docs work (docs-scope). Status: not started.

    Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

  4. added
    triaged
    Team:SKI
    and removed
    needs-team
    on Oct 26, 2026
  5. changed the title [-][Internal]:[Cases/Workflows][9.6 & Serverless] Add delete attachments workflow step[/-] [+][Security][Cases][Workflows][9.6 & Serverless] Add delete attachments workflow step[/+] on Oct 31, 2026
  6. added
    Feature: Threat Hunting
    on Nov 11, 2026
  7. added
    Feature: Workflows
    on Nov 18, 2026
  8. nastasha-solomon commented on Nov 18, 2026

    @nastasha-solomon
    Member

    Dev review checklist

    Accuracy

    • Behavior: The description matches what the feature does in the product, including names, UI labels, defaults, and limits.
    • Scope: The deployment types and the Stack or serverless release are correct.
    • Differences: Any differences between deployment types or versions are called out.
    • Links: The linked PRs, issues, and design docs are the right ones.

    Completeness

    • Prerequisites: Required roles, privileges, subscription level, and settings are listed.
    • User impact: Changes that affect existing users are noted, such as breaking changes, deprecations, migrations, and known limitations.
    • Status: The feature's status (preview, beta, or GA) is stated.
    • Ownership: A point of contact is named and can answer docs questions, and it's clear who writes the first draft.

    Wrap up

    • I fixed or added anything wrong or missing, in the description or a comment.
    • I applied the dev-validated label.

    If you can't confirm an item, leave a comment saying what's unconfirmed and don't apply the label yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Feature: Threat HuntingFeature: WorkflowsTeam:SKIdocumentationtriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions