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

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

..

1 answer

1 accepted

0 votes
Answer accepted

@Mohabad Osman Trello has intentionally make it difficult to delete cards because you cannot recover the deleted cards. As a developer, I do a lot deletion to clean out my test board via a simple sample code based on py-trello

for col in board.list_lists():
if col.name == 'Template' or col.name == 'Trigger Card':
for card in col.list_cards():
pass
else:
for card in col.list_cards():
if card.name == '---' or '(DnD)' in card.name:
pass
else:
card.delete()

 The challenge is how you are going to execute this with a board button on archived list. You probably need to use Butler Http Request to execute this at an endpoint. Even if you use the technique in my post A Powerful Combination

you will find that archived list does not show up for you when creating a board variable. Therefore more logic to add to the above sample code.

@Mohabad Osman I use youtube to show some demos but would not say I am a 'youtuber'. I have nothing recorded specifically for deleting cards. Above sample is from Superhero Checklist script which I recorded a video today.

It uses the technique described in "A Powerful Combination" post.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

380 views 14 12
Join discussion

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