How To Unsubscribe From All YouTube Channels At Once

If you are like me, then you might be using a single Google account to sign in to your YouTube channel on all devices. The reason is simple. You don’t want to miss out on any videos from your favourite YouTuber.

But the problem arises when you have too many notifications popping up on your phone while you are working from multiple YouTube channels you have subscribed to. Another major problem that I have faced is that sometimes I am automatically subscribed to unwanted YouTube channels, which is quite annoying.

Unwanted channels subscription

Unfortunately, there is no option to unsubscribe from all the YouTube channels at once. They used to have them, but they have been removed because Google doesn’t want you to get rid of subscriptions. Simple math: more subscriptions means more opportunities to show advertisements.

Obviously, if you don’t like a YouTube channel, you can simply unsubscribe. The problem comes when you want to unsubscribe from 1000 channels all at once. It would be absurd to do so.

However, there is an easy way where you can unsubscribe from all the channels at once using a script written in JavaScript.

  • First, you must log in to your YouTube account (obviously).
  • Click on the Subscriptions” tab to see all the subscriptions list.
Click on the Subscriptions tab on the left pane
  • Click on the “MANAGE” button in the top-right corner to manage your subscription lists.
Click on the MANAGE button on the top-right corner
  • You will reach the channel page where you will run the script. You can directly reach this page by clicking on this link from your browser.
Subscriptions list where the script will be executed
  • You need to inspect the webpage by right-clicking on the empty area of the page and selecting the “Inspect” option.
Click on the Inspect option after right-clicking on the page
  • Go to the Console tab and scroll down to the bottom until you get the “>” symbol. It is here that you will execute the script.
  • Copy the below script that will automate mass unsubscription of the YouTube channels.
var i = 0;
var count = document.querySelectorAll(
  "ytd-channel-renderer:not(.ytd-item-section-renderer)"
);
myTimer();
function myTimer() {
  if (count == 0) return;
  el = document.querySelector(".ytd-subscribe-button-renderer");
  el.click();
  setTimeout(function () {
    var unSubBtn = document.getElementById("confirm-button").click();
    i++;
    count--;
    console.log("channel " + i + " unsubscribed");
    setTimeout(function () {
      el = document.querySelector("ytd-channel-renderer");
      el.parentNode.removeChild(el);
      myTimer();
    }, 250);
  }, 250);
}
  • Paste the automation script on the console and press enter.
Paste the script and press enter
  • The script will execute and one by one all the channels will be unsubscribed. I have enhanced the code and you will see better logs on right.
The channels will be unsubscribed one after the other

If the script fails, just refresh the page and repeat the process. The unsubscription process will be completed eventually. I was subscribed to more than 1000 channels and hence, it took me a while. 

I hope you might find the article useful and that you are able to unsubscribe from all the unwanted channels successfully.


If you enjoyed reading this, you might also find the below articles worth your time.

2 thoughts on “How To Unsubscribe From All YouTube Channels At Once”

  1. Pingback: 12 Visual Studio Code Shortcuts That Every Developer Must Know - The Developer Story

  2. Pingback: Apple Watch Saving Lives On Regular Occasions Elevated The Company’s Reputation Over The Years - The Developer Story

Leave a Comment

Your email address will not be published.