Skip to main content

How to Bulk Delete All Youtube’s Watch Later Videos with JavaScript

The Watch Later list on YouTube is a great way to keep track of videos you want to watch. You can add videos to the list from anywhere on YouTube with just a few clicks. And when you’re ready to watch, you can access your Watch Later list from any device.

However, the Watch Later list can quickly become overloaded with hundreds of videos. When this happens, it loses its purpose and becomes difficult to manage. Users often start deleting watched videos or uninteresting ones, but this can be a time-consuming process. To make matters worse, YouTube doesn’t provide an easy way to bulk delete videos from the Watch Later list. As a result, many users end up with an unmanageable list of videos that they’ll never actually watch.

If you’re like most people, you have a lot of videos saved in your Watch Later playlist on YouTube. But what if you want to delete all of them? It can be a pain to individually select and delete each one. In this guide, we’ll show you how to bulk delete all of your Watch Later videos quickly and easily.

  • Step 1: Open Watch Later list page on Youtube.com via the Google Chrome browser.
  • Step 2: Press F12 or Ctrl + Shift + I to open the developer tool.
  • Step 3: Switch to the Console tab on the developer tool.
  • Step 4: Depending on your Youtube language, modify and paste the script to the Console tab.

Youtube English

you should try one of the following code depends on hwo Youtube renders HTML elements on your side)

setInterval(function() {
	document.querySelector('#contents button[aria-label="Action menu"]').click();
	var things = document.evaluate('//span[contains(text(),"Watch later")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
		for (var i = 0; i < things.snapshotLength; i++) {
		    things.snapshotItem(i).click();
		}		
}, 1000);

or

setInterval(function() {
	document.querySelector('#primary button[aria-label="Action menu"]').click();
	var things = document.evaluate('//span[contains(text(),"Watch later")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
		for (var i = 0; i < things.snapshotLength; i++) {
		    things.snapshotItem(i).click();
		}		
}, 1000);

Delete a number of videos

var taskCount = 10; //delete 10 videos
var task = setInterval(function() {
	document.querySelector('#contents button[aria-label="Action menu"]').click();
	var things = document.evaluate('//span[contains(text(),"Watch later")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
	for (var i = 0; i < things.snapshotLength; i++) {
	    things.snapshotItem(i).click();
	    taskCount--;	
		if(taskCount < 0){
			clearInterval(task);
		}	    
	}	
}, 1000);

Other languages

  • Replace “Action menu” with the respective text in '#primary button[aria-label="Action menu"]'
  • Replace “Watch later” with the respective text in your language in span[contains(text(),"Watch later")
//French
setInterval(function() {
	document.querySelector('#contents button[aria-label="Menu d\'actions"]').click();
	var things = document.evaluate('//span[contains(text(),"À regarder plus tard")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
		for (var i = 0; i < things.snapshotLength; i++) {
		    things.snapshotItem(i).click();
		}		
}, 1000);
//Italian
setInterval(function() {
	document.querySelector('#contents button[aria-label="Menu Azione"]').click();
	var things = document.evaluate('//span[contains(text(),"Guarda più tardi")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
		for (var i = 0; i < things.snapshotLength; i++) {
		    things.snapshotItem(i).click();
		}		
}, 1000);
//Spanish
setInterval(function() {
	document.querySelector('#contents button[aria-label="Menú de acciones"]').click();
	var things = document.evaluate('//span[contains(text(),"Ver más tarde")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
		for (var i = 0; i < things.snapshotLength; i++) {
		    things.snapshotItem(i).click();
		}		
}, 1000);
//Dutch / Netherlands / Nederlands
setInterval(function() {
	document.querySelector('#contents button[aria-label="Actiemenu"]').click();
	var things = document.evaluate('//span[contains(text(),"Verwijderen uit")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
		for (var i = 0; i < things.snapshotLength; i++) {
		    things.snapshotItem(i).click();
		}		
}, 1000);

By continuing to use the site, you agree to the use of cookies.