Suppose you subscribed to many YouTube channels. How do you unsubscribe from all deleted or terminated Youtube channels at once without going through each one of them?

2 Answers 2


Here's a way to unsubscribe from all YouTube channels at once. Go to your subscription manager page and copy this code into your browser's address bar, then press Enter:

    var btns = document.getElementsByTagName('button');
    for (var i = 0; i < btns.length; i++) {
        if (btns[i].dataset.isSubscribed == "True") {
            if (!!btns[i].dataset.showUnsubConfirmDialog) {
                delete btns[i].dataset.showUnsubConfirmDialog;

I've tested it in Chrome but it should work in other browsers, too. Basically what it does is search through all the buttons on the page, find the ones that are used for unsubscribing from channels, removes the setting to ask for confirmation when you unsubscribe, then it unsubscribes from each one.

  • 1
    Cool, upvoting might use it someday! But the question is to unsub from channels that were terminated by youtube or deleted by its creators, if no one answers the initial question soon, I'll accept this one until things change, because it's a great answer even if it doesn't answer the original question
    – user53868
    Jan 25, 2018 at 14:33
  • @Lynob Sorry, I missed that part of the question. Do you have an example of a channel that was terminated or deleted? If I can subscribe to it, I can try to see how to unsubscribe from them en masse.
    – freginold
    Jan 25, 2018 at 14:36
  • youtube.com/channel/UCJoy0SWCSewI3gP8231kxLQ - The problem is that if you're not subscribed to it already, you cannot do it now, so you have to have an existing channel subscription that's dead now
    – user53868
    Jan 25, 2018 at 14:52
  • Hmm. Are you familiar with HTML/JavaScript at all? If you can inspect the unsubscribe button for that subscription (or any channel that's been terminated/deleted) and add the HTML for that button to your question, I can probably find a way to bulk remove them.
    – freginold
    Jan 25, 2018 at 15:04
  • I lost it :) if I found its location in the subscription manager will let you know :) forgot its name and now cant find it, yesterday the subscription manager had a lot of dead channels, i removed them manually, now it's hard to find one and lost the one i found :)
    – user53868
    Jan 25, 2018 at 15:21

On Windows I tried many several javascripts, but finally used the VBScript with AutoItX.

Option Explicit 
Dim oShell
Dim oAutoIt
Dim i

Set oShell = WScript.CreateObject("WScript.Shell")
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")

' Wait for the FireFox window to become active - change the expected title accordingly
oAutoIt.WinWaitActive "(809) Channel list - YouTube - Mozilla Firefox", ""

' change the delay as you wish
oAutoIt.AutoItSetOption "SendKeyDelay", 50

For i = 1 To 100
    oAutoIt.Send "{TAB 3}{SPACE}{TAB}{SPACE}"


Navigate to https://www.youtube.com/feed/channels

modify the Firefox title in the script accordingly, change the number of repetitions, save the script, go to the FF window, manually click the first "SUBSCRIBED" button, process the whole first unsubscribing and then run the script. Activate the FF window and wait... In the case of unpredictable latency modify the delay time in milliseconds.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.