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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to use Butler to remove a PDF attachment

Hi, we feed our Trello board with auto-generated Mails which have PDF attachments. I would like to remove all of these attachments first thing when a card enters the board. How is this possible?

Thanks in advance!

1 answer

0 votes
milynnus Rising Star May 10, 2022


There is single action to add/remove attachment via link but I cannot find a way to iterate through all the attachments and looking for pdf specifically and removing the attachment. It can definitely be done via http request using trello api.

Thanks, is there a way to remove a specific PDF with the "remove link" action? I do know the filenames, but it does not seem to work this way.

milynnus Rising Star May 10, 2022


I am not at my desk but I think the url has the attachment id in the path besides the name. 

@milynnus Yes, there is one. I was hoping I could remove the attachment just by it's filename, but this does not seem to work.

However, I can't find a way to build deleting the PDF attachments using the Trello API with only a single http request, too. So there does not seem to be a way to solve my problem with Trello+Butler only, right?


The http request can call an endpoint that has ability to go through all the attachments to find the name match if that is what is required. 
here are some examples

@milynnusThanks, but this is a third party service, right? As the information on the cards is quite sensitive, we would like to use Trello and Trello services like Butler only (as stated in the initial request). Or am I missing something?

milynnus Rising Star May 13, 2022


It is something I developed but you can always have one built just for your use. If there is a Butler solution, yes you should go for it. 

@milynnusWe work under German GDPR/DSGVO with a mandatory DPA. I guess our problem is not large enough to justify the effort here.

However, I was expecting this simple feature ("remove all attachments" oder "remove attachment with name") to be a part of standard Butler features.

Thanks for your help!


I am not familiar with German regulations but as far as I know there is none. Trello provides the http request within Butler for you to call services to handle such unique requirements. So you can get you in-house developers to create a service for you. 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events