Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created December 1, 2018 02:55
Show Gist options
  • Save iaindooley/81eb6df83908ac0c10b9d07f807826ee to your computer and use it in GitHub Desktop.
Save iaindooley/81eb6df83908ac0c10b9d07f807826ee to your computer and use it in GitHub Desktop.
Delete all archived cards
function deleteAllArchivedCards(notification)
{
var card = new Notification(notification).addedCard();
if(card.name() == "Clear archived cards")
{
TrelloApi.searchCardsInBoards(card.board(),"is:archived").each(function(card)
{
Logger.log(card);
card.del();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment