Skip to content
DocumentationAPI Reference

Remove User's Saved Audiobooks

me().audiobooks().remove(AudiobookRemoveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
DELETE/me/audiobooks

Remove one or more audiobooks from the Spotify user's library.

ParametersExpand Collapse
params: AudiobookRemoveParams
ids: String

A comma-separated list of the Spotify IDs. For example: ids=18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ. Maximum: 50 IDs.

Remove User's Saved Audiobooks

package dev.cjav.spotted.example

import dev.cjav.spotted.client.SpottedClient
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient
import dev.cjav.spotted.models.me.audiobooks.AudiobookRemoveParams

fun main() {
    val client: SpottedClient = SpottedOkHttpClient.fromEnv()

    val params: AudiobookRemoveParams = AudiobookRemoveParams.builder()
        .ids("18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ,7iHfbu1YPACw6oZPAFJtqe")
        .build()
    client.me().audiobooks().remove(params)
}
Returns Examples