Skip to content

Deleting a song from the playlist

chris larosa edited this page May 16, 2013 · 4 revisions

You cannot delete the currently playing song, however you can delete it after you play it (best) or any time. This sample shows you how to delete the last played song.

    bot.playlistAll(function(playlist) {
        bot.playlistRemove(playlist.list.length - 1);
    });

this is the new way of doing it

bot.playlistRemove(-1); //removes from the end

Clone this wiki locally