Skip to content
DocumentationAPI Reference

Remove User's Saved Audiobooks

client.Me.Audiobooks.Remove(ctx, body) error
DELETE/me/audiobooks

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

ParametersExpand Collapse
body MeAudiobookRemoveParams
IDs param.Field[string]

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

Remove User's Saved Audiobooks

package main

import (
  "context"

  "github.com/cjavdev/spotted-go"
  "github.com/cjavdev/spotted-go/option"
)

func main() {
  client := spotted.NewClient(
    option.WithAccessToken("My Access Token"),
  )
  err := client.Me.Audiobooks.Remove(context.TODO(), spotted.MeAudiobookRemoveParams{
    IDs: "18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ,7iHfbu1YPACw6oZPAFJtqe",
  })
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples