src/spotify-web-api.js
function(trackIds, callback) {
    return WebApiRequest.builder(this.getAccessToken())
      .withPath('/v1/me/tracks')
      .withHeaders({ 'Content-Type': 'application/json' })
      .withBodyParameters({ ids: trackIds })
      .build()
      .execute(HttpManager.del, callback);
  }
function(trackIds, callback) {
    return WebApiRequest.builder(this.getAccessToken())
      .withPath('/v1/me/tracks')
      .withHeaders({ 'Content-Type': 'application/json' })
      .withBodyParameters({ ids: trackIds })
      .build()
      .execute(HttpManager.del, callback);
  }
function ( trackIds , callback ) { return WebApiRequest . builder ( this . getAccessToken ( ) ) . withPath ( '/v1/me/tracks' ) . withHeaders ( { 'Content-Type' : 'application/json' } ) . withBodyParameters ( { ids : trackIds } ) . build ( ) . execute ( HttpManager . del , callback ) ; }
Remove a track from the authenticated user's Your Music library.
@param {string[]} trackIds The track IDs
@param {requestCallback} [callback] Optional callback method to be called instead of the promise.
@returns {Promise|undefined} A promise that if successful returns null, otherwise an error.
Not returned if a callback is given.
Remove a track from the authenticated user s Your Music library .