javascript - Spotify API - Remove all tracks from temporary playlist -


i have temporary playlist want button remove tracks said playlist. how done?

if using api version 1.0 can remove tracks

var mytempplaylist; models.playlist.createtemporary("mytemplist").done(function(playlist) {      mytempplaylist = playlist;     playlist.load("tracks").done(function(loadedplaylist) {         //....     }); });  //remove  existing tracks temp playlist mytempplaylist.tracks.clear(); 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -