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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -