How to remove all videos from YouTube's "Watch Later" playlist even if unwatched

In response to a question on how to remove all videos from your Watch Later playlist on Reddit I posted this up. Thought it may (theoretically of course, read on) help you folk out too!

Firstly, navigate to your Watch Later page

Disclaimer: You really shouldn’t run random code provided by randoms on the internet. You should probably never open your browser’s console unless you know why you’re doing it. I take no responsibility if this doesn’t work, etc, etc.

If you understand that and also understand that I might be a lying loser on the internet trolling you (I’m not, but could easily be), open up your browser’s console (ctrl+shif+j in chrome, ctrl+shift+k in firefox) and paste the following into said console. Again I can’t stress enough how silly it is to run random bits of code if you don’t know what it’s doing

var el = document.getElementsByClassName('pl-video-edit-remove');
for (var i=0;i<el.length; i++) {
el[i].click();
}

To sum up what it does, it finds every button with the HTML class “pl-video-edit-remove” – the button to remove the video from the playlist. It loops through all of them, “clicking” on each. This nukes playlists for sure. I have no idea what effect it’ll have on other pages. Be careful where you run it.

If you get what it’s doing and can see how it’s doing it, hit enter

Wait while it loops through clicking on the “Remove from playlist” button for each vid. I dunno if that many videos causes YouTube to paginate or anything so you may have to do it a few times to finish him off.

Wait a few seconds before navigating away when it’s done too, it takes a moment or two to submit all of the requests 🙂

I know I’m repeating myself but please, please, please – don’t run random bits of code in your console. Lets just say this is here for theory’s sake (although I tested it a few times myself and it worked perfectly)

If you’re still unsure as to what to do or what this is doing I would highly recommend just sucking it up and clicking remove on each video manually

One Comment

Leave a Reply