Home > Tips and Tricks

Fix Cannot remove videos from YouTube Watch Later 502 Error

In this guide, we will show you a workaround to remove YouTube videos from Watch Later. This streaming service from the Silicon Valley giant beholds a slew of intriguing features, one among which is the ability to bookmark videos so that you could watch them at a later date. And once you have viewed them, you could then easily remove them from that playlist with a click of a button. However, this is proving to be easier said than done.

Numerous users [most of them who have reached the limit of 5,000 videos in the Watch Later playlist] have voiced their concern that they are unable to remove YouTube videos from Watch Later. Whenever they click on the Remove Watched Videos’ button, they are greeted with either ‘502 Bad Gateway’ or ‘This function is not available right now. Please try again later’ error. If you are also getting bugged by this issue, then this guide will help you out. Follow along.

Fix Cannot remove videos from YouTube Watch Later 502 Error

Cannot remove videos from YouTube Watch Later

  1. To begin with, head over to your YouTube Watch Later playlist.
  2. Then open Developer Console by pressing CTRL + SHIFT + I on Widows or ⌘ + Option + I on Mac.
  3. Now paste the below code in the console and hit Enter:
    setInterval(function () {
      watchedVideo = document.querySelector(`ytd-thumbnail-overlay-resume-playback-renderer > div.style-scope[style="width: 100%;"]`).closest('#content')
      watchedVideoMenu = watchedVideo.nextElementSibling
      watchedVideoMenu.querySelector('#primary button[aria-label="Action menu"]').click();
      var things = document.evaluate(
        '//span[contains(text(),"Remove from")]',
        document,
        null,
        XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
        null
      );
      for (var i = 0; i < things.snapshotLength; i++) {
        things.snapshotItem(i).click();
      }
    }, 1000);

    Cannot remove videos from YouTube Watch Later

  4. If you would like to remove the partially watched videos from the Watch Later playlist, then use the below script:
    setInterval(function () {
      watchedVideo = document.querySelector(`ytd-thumbnail-overlay-resume-playback-renderer`).closest('#content')
      watchedVideoMenu = watchedVideo.nextElementSibling
      watchedVideoMenu.querySelector('#primary button[aria-label="Action menu"]').click();
      var things = document.evaluate(
        '//span[contains(text(),"Remove from")]',
        document,
        null,
        XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
        null
      );
      for (var i = 0; i < things.snapshotLength; i++) {
        things.snapshotItem(i).click();
      }
    }, 1000);

That’s it. These were the steps to remove YouTube videos from Watch Later. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: