Skip to main content
One Hit Wonder
February 5, 2019
Answered

How do you clear all your favourite tracks?

  • February 5, 2019
  • 21 replies
  • 6975 views
I want to delete all my favourite tracks and restart it but don’t know if there is a clear all button somewhere or will I have to physically go through them all?
    Best answer by Joltaic

    I managed to empty my Favorites… Here are the steps for what I did on Firefox:

    1. On the search bar, type "about:config" and accept.
    2. Search "devtools.chrome.enabled" and set it to "True"
    3. On Deezer, go to your Favorite tracks and click on the Checkbox that selects all of the songs. This will load the list of songs you have saved.
    4. Right-click anywhere on the page and select "Inspect".
    5. Go to the Console tab.
    6. Paste the following code:

    // Remove element function
    songRemove = function() {
        Array.from(document.querySelectorAll("button[aria-label='Remove from Favorite tracks']")).slice(0,1).forEach(e => e.click());

        console.log("Song removed from Favorites.");

    }

    // Total tracks to be removed
    track_no = 10000;

    // Song removal loop
    for (let i = 0; i < track_no; i++) {
        setTimeout(songRemove, i * 1500);

    }

     

    1. Where it says "track_no = 10000;" you can change the number to the number of songs you want removed.
    2. Press enter and it will very slowly start removing songs from your favorites list. This will take 250 minutes (over 4 hours). So you might want to do this while you're doing something else or sleeping. There reason for the slow speed is that the songs won´t actually get deleted if you go too fast.

     

    Thank you to Adrian Dymorz for the little snippet of code.

    21 replies

    Hitmaker
    March 18, 2023

    (3/18/2023) The console solution doesn´t seem to work anymore (unless I'm doing something wrong). Does anyone know of how to do this? Selecting my entire Favorite list and clicking "Remove from Favorites list" doesn´t do anything...

    Hitmaker
    March 18, 2023

    (3/18/2023) The console solution doesn´t seem to work anymore (unless I'm doing something wrong). Does anyone know of how to do this? Selecting my entire Favorite list and clicking "Remove from Favorites list" doesn´t do anything...

    Just a quick follow up:

    I realized I spelled "Favorite" differently which was causing it not to work. Now it works, but only for 10 of the elements that are displayed on screen. I increased "slice(0,10)" to  "slice(0,100)", but I am still limited by the amount of songs that show up on screen… I want to remove thousands of songs.

    If I figure something out I will follow up.

    JoltaicAnswer
    Hitmaker
    March 19, 2023

    I managed to empty my Favorites… Here are the steps for what I did on Firefox:

    1. On the search bar, type "about:config" and accept.
    2. Search "devtools.chrome.enabled" and set it to "True"
    3. On Deezer, go to your Favorite tracks and click on the Checkbox that selects all of the songs. This will load the list of songs you have saved.
    4. Right-click anywhere on the page and select "Inspect".
    5. Go to the Console tab.
    6. Paste the following code:

    // Remove element function
    songRemove = function() {
        Array.from(document.querySelectorAll("button[aria-label='Remove from Favorite tracks']")).slice(0,1).forEach(e => e.click());

        console.log("Song removed from Favorites.");

    }

    // Total tracks to be removed
    track_no = 10000;

    // Song removal loop
    for (let i = 0; i < track_no; i++) {
        setTimeout(songRemove, i * 1500);

    }

     

    1. Where it says "track_no = 10000;" you can change the number to the number of songs you want removed.
    2. Press enter and it will very slowly start removing songs from your favorites list. This will take 250 minutes (over 4 hours). So you might want to do this while you're doing something else or sleeping. There reason for the slow speed is that the songs won´t actually get deleted if you go too fast.

     

    Thank you to Adrian Dymorz for the little snippet of code.

    Johnathan.Deezer
    Ultimate Superstar
    Ultimate Superstar
    March 19, 2023

    Thank you for the info @Joltaic! 😊

    JohnathanF
    Roadie
    June 28, 2023

    I found a new way to remove all loved tracks, in chrome dev tools, clean all requests, select all tracks, clean all requests again and send delet request on deezer, will be created two requests on console, you need to copy as curl bash the request that have a payload with tracks id and the response saying that you ultrapassed the limit. On Postman application, on import menu, paste the curl request, will be created a new request, edit the number of track ids keeping the format of request, more and less remove half of ids and send the post request, validate on deezer if worked. Here was worked, i had 2300 tracks. Reply me, if worked or no for you :)

    March 30, 2024

    March 30 2024 - console method on Mac OS Sonoma - Chrome, is working!

    OMGawd!   TY @Joltaic & especially @Adrian Dymorz 

    Roadie
    September 14, 2025

    I want to delete all my favourite tracks and restart it but don’t know if there is a clear all button somewhere or will I have to physically go through them all?

    This was helpful, so it’s worth mentioning. The updated working code is provided below. There’s no need to wait 1.5 seconds to remove songs anymore; shorter times are now possible.
     

    function removeFavoriteTrack() {
    const removeButtons = Array.from(
    document.querySelectorAll("button[aria-label='Sevdiğim şarkılardan çıkar']")
    );
    if (removeButtons.length > 0) {
    removeButtons[0].click();
    console.log("Bir şarkı favorilerden kaldırıldı.");
    } else {
    console.log("Silinecek şarkı bulunamadı.");
    }
    }

    let totalTracks = 3000;

    for (let i = 0; i < totalTracks; i++) {
    setTimeout(removeFavoriteTrack, i * 750);
    }

     

    Roadie
    January 20, 2026

    None of the above methods worked for me on Firefox (MacOS) the version that I made below helped me clean-up 3k favourites without any issue. 

    Instructions:

    Step 1 — Open Deezer

    1. Go to https://www.deezer.com and log in to your account.

    2. Navigate to your Favorites / Loved Tracks page:

    Step 2 — Open Browser Console

    • In Google Chrome / Edge / Firefox:

      1. Press F12 or right-click anywhere on the page → Inspect

      2. Click the Console tab.

    Step 3 — Paste the Script

    1. Copy the entire script below:

      (function() {
      // Live counter element
      let counterEl = document.getElementById("removeCounter");
      if (!counterEl) {
      counterEl = document.createElement("div");
      counterEl.id = "removeCounter";
      counterEl.style.position = "fixed";
      counterEl.style.top = "10px";
      counterEl.style.right = "10px";
      counterEl.style.padding = "8px 12px";
      counterEl.style.backgroundColor = "rgba(0,0,0,0.7)";
      counterEl.style.color = "#fff";
      counterEl.style.fontSize = "16px";
      counterEl.style.fontFamily = "sans-serif";
      counterEl.style.zIndex = "9999";
      counterEl.style.borderRadius = "8px";
      document.body.appendChild(counterEl);
      }

      let removedCounter = 0;

      function realClick(el) {
      ["mousedown", "mouseup", "click"].forEach(type =>
      el.dispatchEvent(new MouseEvent(type, { bubbles: true }))
      );
      }

      async function removeNextTrack() {
      const btn = document.querySelector("[aria-label='Remove from Favourite tracks']");
      if (!btn) {
      // Scroll for more tracks
      const scroller = [...document.querySelectorAll("div")].find(d => d.scrollHeight > d.clientHeight);
      if (scroller) scroller.scrollTop += 600;
      // Wait and try again
      setTimeout(removeNextTrack, 800 + Math.random() * 200);
      return;
      }

      try {
      realClick(btn);
      removedCounter++;
      counterEl.textContent = `Removed ${removedCounter} favorites`;
      } catch (e) {
      console.warn("Click failed, skipping:", e);
      }

      // Wait 900–1200ms before next track
      setTimeout(removeNextTrack, 900 + Math.random() * 300);
      }

      removeNextTrack();
      })();

       

    2. Paste it into the Console and press Enter 

    Step 4 — Let It Run

    You should see a black box in the top-right corner with a counter.

    Removed 1 favorites
    Removed 2 favorites
    Removed 3 favorites
    etc
    • Do not click anything else in the Deezer tab.
    • The script will automatically scroll and remove tracks one by one

    Hopefully this is of help to somebody😄

    Roadie
    March 27, 2026

    I found a new way to remove all loved tracks, in chrome dev tools, clean all requests, select all tracks, clean all requests again and send delet request on deezer, will be created two requests on console, you need to copy as curl bash the request that have a payload with tracks id and the response saying that you ultrapassed the limit. On Postman application, on import menu, paste the curl request, will be created a new request, edit the number of track ids keeping the format of request, more and less remove half of ids and send the post request, validate on deezer if worked xciptv apkpure. Here was worked, i had 2300 tracks. Reply me, if worked or no for you :)

    Generally, you need to open your favorites or liked songs playlist, then select the option to remove or unlike the tracks. Some apps allow you to select multiple songs at once and remove them in bulk, while others may require you to remove each track individually.

    Guitar Hero
    April 11, 2026

    For french people, here is the code snippet that worked for me. It’s a small adjustment from ​@snieuwkerk  code. I had to change the aria-label tag for the french one. You just have to paste this code instead of his own in step 3.

    (function() {
    // Live counter element
    let counterEl = document.getElementById("removeCounter");
    if (!counterEl) {
    counterEl = document.createElement("div");
    counterEl.id = "removeCounter";
    counterEl.style.position = "fixed";
    counterEl.style.top = "10px";
    counterEl.style.right = "10px";
    counterEl.style.padding = "8px 12px";
    counterEl.style.backgroundColor = "rgba(0,0,0,0.7)";
    counterEl.style.color = "#fff";
    counterEl.style.fontSize = "16px";
    counterEl.style.fontFamily = "sans-serif";
    counterEl.style.zIndex = "9999";
    counterEl.style.borderRadius = "8px";
    document.body.appendChild(counterEl);
    }

    let removedCounter = 0;

    function realClick(el) {
    ["mousedown", "mouseup", "click"].forEach(type =>
    el.dispatchEvent(new MouseEvent(type, { bubbles: true }))
    );
    }

    async function removeNextTrack() {
    const btn = document.querySelector("[aria-label='Retirer des Coups de cœur']");
    if (!btn) {
    // Scroll for more tracks
    const scroller = [...document.querySelectorAll("div")].find(d => d.scrollHeight > d.clientHeight);
    if (scroller) scroller.scrollTop += 600;
    // Wait and try again
    setTimeout(removeNextTrack, 800 + Math.random() * 200);
    return;
    }

    try {
    realClick(btn);
    removedCounter++;
    counterEl.textContent = `Removed ${removedCounter} favorites`;
    } catch (e) {
    console.warn("Click failed, skipping:", e);
    }

    // Wait 900–1200ms before next track
    setTimeout(removeNextTrack, 900 + Math.random() * 300);
    }

    removeNextTrack();
    })();

    None of the above methods worked for me on Firefox (MacOS) the version that I made below helped me clean-up 3k favourites without any issue. 

    Instructions:

    Step 1 — Open Deezer

    1. Go to https://www.deezer.com and log in to your account.

    2. Navigate to your Favorites / Loved Tracks page:

    Step 2 — Open Browser Console

    • In Google Chrome / Edge / Firefox:

      1. Press F12 or right-click anywhere on the page → Inspect

      2. Click the Console tab.

    Step 3 — Paste the Script

    1. Copy the entire script below:

      (function() {
      // Live counter element
      let counterEl = document.getElementById("removeCounter");
      if (!counterEl) {
      counterEl = document.createElement("div");
      counterEl.id = "removeCounter";
      counterEl.style.position = "fixed";
      counterEl.style.top = "10px";
      counterEl.style.right = "10px";
      counterEl.style.padding = "8px 12px";
      counterEl.style.backgroundColor = "rgba(0,0,0,0.7)";
      counterEl.style.color = "#fff";
      counterEl.style.fontSize = "16px";
      counterEl.style.fontFamily = "sans-serif";
      counterEl.style.zIndex = "9999";
      counterEl.style.borderRadius = "8px";
      document.body.appendChild(counterEl);
      }

      let removedCounter = 0;

      function realClick(el) {
      ["mousedown", "mouseup", "click"].forEach(type =>
      el.dispatchEvent(new MouseEvent(type, { bubbles: true }))
      );
      }

      async function removeNextTrack() {
      const btn = document.querySelector("[aria-label='Remove from Favourite tracks']");
      if (!btn) {
      // Scroll for more tracks
      const scroller = [...document.querySelectorAll("div")].find(d => d.scrollHeight > d.clientHeight);
      if (scroller) scroller.scrollTop += 600;
      // Wait and try again
      setTimeout(removeNextTrack, 800 + Math.random() * 200);
      return;
      }

      try {
      realClick(btn);
      removedCounter++;
      counterEl.textContent = `Removed ${removedCounter} favorites`;
      } catch (e) {
      console.warn("Click failed, skipping:", e);
      }

      // Wait 900–1200ms before next track
      setTimeout(removeNextTrack, 900 + Math.random() * 300);
      }

      removeNextTrack();
      })();

       

    2. Paste it into the Console and press Enter 

    Step 4 — Let It Run

    You should see a black box in the top-right corner with a counter.

    Removed 1 favorites
    Removed 2 favorites
    Removed 3 favorites
    etc
    • Do not click anything else in the Deezer tab.
    • The script will automatically scroll and remove tracks one by one

    Hopefully this is of help to somebody😄