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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

..

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
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...

814 views 13 30
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