Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@teknikqa
Created May 7, 2017 06:38
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save teknikqa/f14fa07cf28228cb2dfe49a0caab8e70 to your computer and use it in GitHub Desktop.
Save teknikqa/f14fa07cf28228cb2dfe49a0caab8e70 to your computer and use it in GitHub Desktop.
Bulk delete Last.FM scrobbles & loved tracks
// On the Last.FM website go to the page which lists the tracks that you have loved.
// Open Chrome DevTools (or Firefox or any modern browser that has a built in Javacript Console)
// and run the following command.
// This basically clicks on all the delete buttons on the page and reloads the page.
jQuery('.love-button--loved').each(function(_, b) {
b.click();
});
location.reload();
// On the Last.FM website go to the page which lists the tracks that you have scrobbled.
// Open Chrome DevTools (or Firefox or any modern browser that has a built in Javacript Console)
// and run the following command.
// This basically clicks on all the delete buttons on the page and reloads the page.
jQuery('.dropdown-menu-clickable-item').each(function(_, b) {
b.click();
});
location.reload();
@dfbadawi
Copy link

dfbadawi commented Jun 6, 2017

to avoid clicking all dropdown items:

jQuery('button.dropdown-menu-clickable-item[data-ajax-form-sets-state=deleted]').each(function(_, b) {
  b.click();
});
location.reload();

@4rion
Copy link

4rion commented Nov 26, 2017

Thx for this ! :)

@Jimbles
Copy link

Jimbles commented Apr 25, 2018

YES! Thanks. I feel asleep with spotify on and things got a little crazy

@Botanistt
Copy link

Thank you.

@chrs-myrs
Copy link

If you need something more heavyweight (say to delete many 1000s of scrobbles) try this https://github.com/chrs-myrs/lastfm-scrobble-purger

@Deadly-Commando
Copy link

thank you so much i love you

@n00bhax
Copy link

n00bhax commented Jan 10, 2019

thanks

@RollingStar
Copy link

@dfbadawi 's worked perfectly.

Copy link

ghost commented Apr 6, 2020

is it still working?

@kokosowy
Copy link

kokosowy commented Jan 1, 2021

is it still working?

Yes it does! Just used it.

@yigituran332
Copy link

it didnt work out for me

@ericafterdark
Copy link

it didnt work out for me

Last.fm changed their site. To remove loved tracks use:

jQuery('.chartlist-love-button').each(function(_, b) {
  b.click();
});
location.reload();

@mraxilus
Copy link

mraxilus commented Dec 1, 2021

Confirming that @dfbadawi's method worked as of 2021-12-01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment