Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Too many attachments in in Jira tickets - How to bulk delete attachments?

Sheila Glass
March 10, 2026

I sometimes get Jira tickets that end up with too many attachments - typically caused by repeated email replies from customers that have a bulk of images & links to their online media accounts in their email signature.

I can delete attachments one at a time, but when there are so many, it would be great to be able to bulk delete. Any tips?

Thanks

Sheila

3 answers

0 votes
Aron Gombas _Midori_
Community Champion
March 10, 2026

@Sheila Glass 

Unfortunately, Jira does not have a built-in bulk delete option for attachments on an issue. Here are your practical options:

1. Jira REST API scripting

This is the most straightforward free approach. You can write a small script that first retrieves all attachments on an issue, then deletes them by ID. The two endpoints you need are:

  1. GET /rest/api/2/issue/{issueKey}?fields=attachment (to list attachments and their IDs)
  2. DELETE /rest/api/2/attachment/{attachmentId} (to delete each one)

A simple loop in Python, PowerShell, or even curl in a bash script can delete dozens of attachments in seconds.

2. Marketplace apps

There are third-party apps like "Bulk Attachment Manager" or "Issue Cleaner for Jira" that add bulk attachment management directly in the Jira UI. Search the Atlassian Marketplace for options.

0 votes
Ugnius Aušra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 10, 2026

Hello @Sheila Glass 

You mentioned "Email signature". 

So i can share how i managed this in instance.

I'm using this free app - https://atheratech.atlassian.net/jira/marketplace/discover/app/io.aety.mailsignatureremover

Basically, you download these attachments (Signature attachments) and upload to that app, and next time app will remove from attachments.

 

I also tried similar solution using automations.

So when new work item is created -> By based of File name, you can create condition, that for example it would always delete attachments who have a pattern like - "Signature.001" or "facebook.01" and so on.

Attachment.png

Sheila Glass
March 10, 2026

Thanks, Ugnius!

I am going with the JSM - Automation - Rule option you suggested to try to delete those Social Media attachments when/as the email reaches the support ticket.

However, I'm having a bit of trouble with the Regular Expression syntax - I've reached out to Atlassian Support for assistance. Once I get this solved, I'll reply to this thread with the solution.

Here is what I have so far... Image attached.

JDS-Delete-Social-Media.PNG

Thanks

Kind Regards,

Sheila

Ugnius Aušra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 11, 2026

So in variable {{social}} i would put value: 

{{issue.description.match("https?://(www\.)?(facebook|instagram|linkedin|youtube|twitter|x|tiktok)\.com/\S*")}}

and then in regular expression i would put variable  {social}}

Tell me how this goes!

0 votes
Sheila Glass
March 10, 2026

I don't want to download or delete all - But I'd like to select most and delete with one click.

Attachments....PNG 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events