Skip to content
DocumentationAPI Reference

Remove Users' Saved Albums

client.Me.Albums.Remove(ctx, body) error
DELETE/me/albums

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

ParametersExpand Collapse
body MeAlbumRemoveParams
IDs param.Field[[]string]optional

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.

Published param.Field[bool]optional

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 Users' Saved Albums

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.Albums.Remove(context.TODO(), spotted.MeAlbumRemoveParams{

  })
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples