AutomationFlowsGeneral › Automatic Trello Board Cleanup by Removing Cards with Specific Labels

Automatic Trello Board Cleanup by Removing Cards with Specific Labels

ByRobert Breen @rbreen on n8n.io

Automatically clean up Trello boards by deleting any cards labeled “Mark for Deletion.”

Event trigger★★★★☆ complexity10 nodesTrello
General Trigger: Event Nodes: 10 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #7619 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "27dbf373-3072-47de-88a6-fc3b6a4a47b6",
      "name": "When clicking \u2018Execute workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        368,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b5844156-2d81-4067-a05a-4aa8f0a1b7b4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -16
      ],
      "parameters": {
        "width": 400,
        "height": 928,
        "content": "\n\n## \u2699\ufe0f Setup Instructions\n\n### 1\ufe0f\u20e3 Connect Trello (Developer API)\n1. Get your **API key**: https://trello.com/app-key  \n2. Generate a **token** (from the same page \u2192 **Token**)\n3. In n8n \u2192 **Credentials \u2192 New \u2192 Trello API**, paste **API Key** and **Token**, save.  \n4. Open each Trello node (**Get Board**, **Get Lists**, **Get Cards**) and select your Trello credential.\n\n\n### 2\ufe0f\u20e3 Add Your Board URL to \u201cGet Board\u201d\n1. Copy your Trello board URL (e.g., `https://trello.com/b/DCpuJbnd/administrative-tasks`).  \n2. Open the **Get Board** node \u2192 **Resource: Board**, **Operation: Get**.  \n3. In **ID**, choose **URL** mode and paste the **board URL**.  \n   - The node will resolve the board and output its `id` \u2192 used by **Get Lists** / **Get Cards**.\n\n## \ud83d\udcec Contact\n\ud83d\udce7 [rbreen@ynteractive.com](mailto:rbreen@ynteractive.com)  \n\ud83d\udd17 [Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)  \n\ud83c\udf10 [ynteractive.com](https://ynteractive.com)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "25af7640-7002-487b-be74-86ed02af5a84",
      "name": "Sticky Note56",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -16
      ],
      "parameters": {
        "color": 7,
        "width": 1504,
        "height": 928,
        "content": "# \ud83d\uddd1\ufe0f Auto Trello Cleanup with Label and Delete Card Node\n\nAutomatically clean up Trello boards by deleting any cards labeled **\u201cMark for Deletion.\u201d**  \n\nThis workflow checks all cards on your chosen Trello board, looks for the **Mark for Deletion** label, and removes those cards automatically \u2014 keeping your boards tidy without manual effort.  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "8a0996e3-4cff-40b7-a2c7-f1535323150c",
      "name": "Get Board4",
      "type": "n8n-nodes-base.trello",
      "position": [
        608,
        176
      ],
      "parameters": {
        "id": {
          "__rl": true,
          "mode": "url",
          "value": "https://trello.com/b/DCpuJbnd/administrative-tasks"
        },
        "resource": "board",
        "operation": "get",
        "additionalFields": {}
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "56e3f710-8b4a-4867-975c-97ed8f4e298f",
      "name": "Get Lists4",
      "type": "n8n-nodes-base.trello",
      "position": [
        576,
        720
      ],
      "parameters": {
        "id": "={{ $json.id }}",
        "resource": "list",
        "operation": "getAll",
        "additionalFields": {}
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e8bc8790-d311-449e-a54e-0a8989d5294f",
      "name": "Get Cards4",
      "type": "n8n-nodes-base.trello",
      "position": [
        784,
        352
      ],
      "parameters": {
        "id": "={{ $json.id }}",
        "resource": "list",
        "operation": "getCards",
        "additionalFields": {}
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a80e96fd-6bc4-497e-89c9-7d11c85d8301",
      "name": "Sticky Note58",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        544
      ],
      "parameters": {
        "color": 3,
        "width": 336,
        "height": 304,
        "content": "### 1\ufe0f\u20e3 Connect Trello (Developer API)\n1. Get your **API key**: https://trello.com/app-key  \n2. Generate a **token** (from the same page \u2192 **Token**)\n3. In n8n \u2192 **Credentials \u2192 New \u2192 Trello API**, paste **API Key** and **Token**, save.  "
      },
      "typeVersion": 1
    },
    {
      "id": "bd419fde-7d75-4231-8b18-c1ca2eba08e7",
      "name": "Delete a card",
      "type": "n8n-nodes-base.trello",
      "position": [
        1552,
        240
      ],
      "parameters": {
        "id": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Get Cards4').item.json.id }}"
        },
        "operation": "delete"
      },
      "credentials": {
        "trelloApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5ae1a4b6-05ec-48d8-a62b-d8202225cb32",
      "name": "Split Labels",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        992,
        624
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "labels"
      },
      "typeVersion": 1
    },
    {
      "id": "58344fe6-a5bc-427c-863e-2f971e88c0c1",
      "name": "Filter Marked for Delete",
      "type": "n8n-nodes-base.filter",
      "position": [
        1264,
        400
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "58a9c806-b9ef-43d5-9f4d-6d0dfcae474e",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "Mark for Deletion"
            }
          ]
        }
      },
      "typeVersion": 2.2
    }
  ],
  "connections": {
    "Get Board4": {
      "main": [
        [
          {
            "node": "Get Lists4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Cards4": {
      "main": [
        [
          {
            "node": "Split Labels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Lists4": {
      "main": [
        [
          {
            "node": "Get Cards4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Labels": {
      "main": [
        [
          {
            "node": "Filter Marked for Delete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Marked for Delete": {
      "main": [
        [
          {
            "node": "Delete a card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "Get Board4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Automatically clean up Trello boards by deleting any cards labeled “Mark for Deletion.”

Source: https://n8n.io/workflows/7619/ — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

getListID. Uses executeWorkflowTrigger, trello. Event-driven trigger; 3 nodes.

Execute Workflow Trigger, Trello
General

Create A New Card In Trello. Uses manualTrigger, trello. Event-driven trigger; 2 nodes.

Trello
General

Create a new card in Trello. Uses manualTrigger, trello. Event-driven trigger; 2 nodes.

Trello
General

Blotato. Uses googleSheets, @blotato/n8n-nodes-blotato. Event-driven trigger; 65 nodes.

Google Sheets, @Blotato/N8N Nodes Blotato
General

This template is a hands-on, practical exam designed to help you master n8n Expressions—the key to accessing and manipulating data in your workflows.

Stop And Error