Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bulk delete attachments

I used the Teamgantt plugin to create a roadmap from Trello. I've been trying to disable and reset the plugin but it's left disconnected attachments in Trello on my cards.

Anyone know of a way to bulk delete them? Otherwise I've got to manually delete from more than 150 cards to reset Teamgantt :-(


1 answer

0 votes
Iain Dooley Community Leader Feb 07, 2019

@Jamie Hi Jamie, you'd need to do this using the API. In Trellinator, the code would look like this:

function removeAllAttachments()


  new Trellinator().boards("My Board").cards().each(function(card)








You can see how to install and run this code using the Trellinator setup guide:

Whether or not figuring this out will be faster than manually deleting the attachments will depend on how many attachments you have, but the plus side would be that you'd be able to take advantage of simpler API automations in future too :)

Thanks dude. I'll give that a go. Need to figure out how to pass a specific type of attachment to the function so it doesn't delete literally every attachment.

I'll check the docs.

Iain Dooley Community Leader Feb 12, 2019

@Jamie you'd need to do something like:




where .*pattern.* is some regular expression matching attachments you want to delete. They all show up as links in the Trello API, but with the original file names so for example you could delete all PDF files with:


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

239 views 7 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you