{
  "workflow": {
    "id": 4156,
    "name": "Bulk delete all YouTube playlists from your channel",
    "views": 1090,
    "recentViews": 0,
    "totalViews": 1090,
    "createdAt": "2025-05-17T17:22:02.281Z",
    "description": "### 🧑‍💼 Who is this for?\n\nThis workflow is for **any YouTube user** who wants to **bulk delete all playlists** from their own channel — whether to start fresh, clean up old content, or prepare the account for a new purpose.\n\nIt’s useful for:\n\n* Creators reorganizing their channel\n* People transferring content to another account\n* Anyone who wants to avoid deleting playlists manually one by one\n\n### 🧠 What problem is this workflow solving?\n\nYouTube does not offer a built-in way to delete multiple playlists at once. If you have dozens or hundreds of playlists, removing them manually is extremely time-consuming.\n\nThis workflow **automates the entire deletion process** in seconds, saving you hours of repetitive effort.\n\n### ⚙️ What this workflow does\n\n* Connects to your YouTube account\n* Fetches **all playlists** you’ve created (excluding system playlists)\n* **Deletes them one by one** automatically\n\n&gt; ⚠️ This action is **irreversible**. Once a playlist is deleted, it cannot be recovered. Use with caution.\n\n### 🛠️ Setup\n\n1. 🔐 **Create a YouTube OAuth2 credential** in n8n for your channel.\n2. 🧭 Assign the credential to both YouTube nodes.\n3. ✅ Click **“Test workflow”** to execute.\n\n&gt; 🟨 By default, this workflow deletes everything. If you want to be more selective, see the customization tips below.\n\n### 🧩 How to customize this workflow to your needs\n\n* ✅ **Add a confirmation flag**\n  Insert a `Set` node with a custom field like `confirm_delete = true`, and follow it with an `IF` node to prevent accidental execution.\n\n* ✂️ **Delete only some playlists**\n  Add a `Filter` node after fetching playlists — you can match by title, ID, or keyword (e.g. only delete playlists containing “old”).\n\n* 🛑 **Add a pause before deletion**\n  Insert a `Wait` or `NoOp` node to give you a moment to cancel before it runs.\n\n* 🔁 **Adapt to scheduled cleanups**\n  Use a `Cron` trigger if you want to periodically clear temporary playlists.",
    "workflow": {
      "id": "J25SBmxAuoN5dvuY",
      "meta": {
        "instanceId": "a059b3dfdab56aa587cc6a2c8635f6f2700cf0c7064dbfb5981c26f7ad9eab88"
      },
      "name": "🧹 Delete all playlists from a YouTube channel",
      "tags": [],
      "nodes": [
        {
          "id": "7184ab87-e3e5-4097-a882-32174d931561",
          "name": "When clicking ‘Test workflow’",
          "type": "n8n-nodes-base.manualTrigger",
          "position": [
            -620,
            -180
          ],
          "parameters": {},
          "typeVersion": 1
        },
        {
          "id": "87b7d04c-351e-437c-9acd-ad342772cc13",
          "name": "Get all playlists",
          "type": "n8n-nodes-base.youTube",
          "position": [
            -400,
            -180
          ],
          "parameters": {
            "part": [
              "id"
            ],
            "filters": {},
            "options": {},
            "resource": "playlist",
            "returnAll": true
          },
          "credentials": {
            "youTubeOAuth2Api": {
              "id": "credential-id",
              "name": "youTubeOAuth2Api Credential"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "3d16c7cb-d9d5-4980-ae77-a16f9849197f",
          "name": "Remove playlist",
          "type": "n8n-nodes-base.youTube",
          "position": [
            -180,
            -180
          ],
          "parameters": {
            "options": {},
            "resource": "playlist",
            "operation": "delete",
            "playlistId": "={{ $json.id }}"
          },
          "credentials": {
            "youTubeOAuth2Api": {
              "id": "credential-id",
              "name": "youTubeOAuth2Api Credential"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "47c602f3-820a-4960-9b3c-217cf1defed3",
          "name": "Sticky Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -800,
            -540
          ],
          "parameters": {
            "color": 3,
            "width": 1000,
            "height": 320,
            "content": "## 🧹 Delete all playlists from a YouTube channel\n\n### ℹ️ ABOUT THIS WORKFLOW\nThis workflow will **delete all the playlists from a YouTube channel**.\n\n### 🛠️ SETUP\n1. Create a YouTube credential.\n2. Add the credential to the YouTube nodes.\n3. Click \"Test workflow\" to run it.\n\n\n**🚨 BE CAREFUL: EXECUTING THIS WORKFLOW CAUSES IRREVERSIBLE ACTIONS: YOU CANNOT RECOVER THE DELETED PLAYLISTS**"
          },
          "typeVersion": 1
        }
      ],
      "active": false,
      "pinData": {},
      "settings": {
        "executionOrder": "v1"
      },
      "versionId": "a8b4e109-dd64-42bc-a533-e93006e596a2",
      "connections": {
        "Get all playlists": {
          "main": [
            [
              {
                "node": "Remove playlist",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "When clicking ‘Test workflow’": {
          "main": [
            [
              {
                "node": "Get all playlists",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 29,
    "workflowInfo": {
      "nodeCount": 4,
      "nodeTypes": {
        "n8n-nodes-base.youTube": {
          "count": 2
        },
        "n8n-nodes-base.stickyNote": {
          "count": 1
        },
        "n8n-nodes-base.manualTrigger": {
          "count": 1
        }
      }
    },
    "status": "published",
    "readyToDemo": null,
    "user": {
      "name": "Lucía Maio Brioso",
      "username": "luciamb",
      "bio": "I'm a backend software developer who loves n8n ⚙️ I enjoy automating everything and share templates I personally find helpful 💡",
      "verified": true,
      "links": [
        "https://linktr.ee/luciamb"
      ],
      "avatar": "https://gravatar.com/avatar/988aa6720bcbcddbc20442260f55f01896aa4c7fbcb8b1d7ad61acffc87f43f4?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 357,
        "icon": "file:youTube.png",
        "name": "n8n-nodes-base.youTube",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/using-automation-to-boost-productivity-in-the-workplace/",
                  "icon": "💪",
                  "label": "Using Automation to Boost Productivity in the Workplace"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.youtube/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Marketing"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "YouTube"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAABHNCSVQICAgI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BfMcUisL3tmlbvyWbFUgDb/THv39um0z+8e2cXbzX9B27nov7Hj3Z9tJpEXp1pp1JE5XKvu9uZSoXozRunbSDyP9/rtDYOPX5slj7jcbNuEwo5VffH1GqXG4f294Hd3T/aOOQuhiMaBe7fN9vLIpHLY59bzUol871YNFvNWsce8S/mH0FfbTKoGAYVw6BiGFQMg4phUDEMKoZBxTCoGAYVw6BiGFQMg4phUDEMKobhF0xEbb6Jqe94AAAAAElFTkSuQmCC"
        },
        "displayName": "YouTube",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 27,
            "name": "Marketing"
          }
        ]
      },
      {
        "id": 565,
        "icon": "fa:sticky-note",
        "name": "n8n-nodes-base.stickyNote",
        "codex": {
          "data": {
            "alias": [
              "Comments",
              "Notes",
              "Sticky"
            ],
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers"
              ]
            }
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Sticky Note",
          "color": "#FFD233"
        },
        "iconData": {
          "icon": "sticky-note",
          "type": "icon"
        },
        "displayName": "Sticky Note",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 838,
        "icon": "fa:mouse-pointer",
        "name": "n8n-nodes-base.manualTrigger",
        "codex": {
          "data": {
            "resources": {
              "generic": [],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.manualworkflowtrigger/"
                }
              ]
            },
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "When clicking ‘Execute workflow’",
          "color": "#909298"
        },
        "iconData": {
          "icon": "mouse-pointer",
          "type": "icon"
        },
        "displayName": "Manual Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 33,
        "name": "Social Media"
      }
    ],
    "image": []
  }
}