Skip to content
DocumentationAPI Reference

Remove User's Saved Tracks

me().tracks().remove(TrackRemoveParamsparams = TrackRemoveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/me/tracks

Remove one or more tracks from the current user's 'Your Music' library.

ParametersExpand Collapse
TrackRemoveParams params
Optional<List<String>> ids

A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]
A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

Optional<Boolean> published

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

Remove User's Saved Tracks

package dev.cjav.spotted.example;

import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.me.tracks.TrackRemoveParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        SpottedClient client = SpottedOkHttpClient.fromEnv();

        client.me().tracks().remove();
    }
}
Returns Examples