<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How delete one or more elements from playlist? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186522#M2359</link>
    <description>Up, help guys</description>
    <pubDate>Mon, 12 Apr 2021 10:06:06 GMT</pubDate>
    <dc:creator>Koteyk0o</dc:creator>
    <dc:date>2021-04-12T10:06:06Z</dc:date>
    <item>
      <title>How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5185630#M2338</link>
      <description>&lt;P data-unlink="true"&gt;If you use the API &lt;STRONG&gt;https://api.spotify.com/v1/playlists/{playlist_id}/tracks&lt;/STRONG&gt; it removes ALL TRACKS from the playlist that match the given URI.&lt;/P&gt;&lt;P&gt;But how can I delete one track? Or a certain number of tracks with such a URI?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 16:21:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5185630#M2338</guid>
      <dc:creator>Koteyk0o</dc:creator>
      <dc:date>2021-04-10T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186041#M2349</link>
      <description>&lt;P&gt;Anyone can help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There is also a problem with getting the correct URIs for songs via &lt;A href="https://api.spotify.com/v1/me/tracks" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/tracks&lt;/A&gt;.&lt;BR /&gt;If you receive URIs for songs through &lt;A href="https://api.spotify.com/v1/me/tracks" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/tracks&lt;/A&gt;, then these URIs are different from the URIs in the library.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 11:23:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186041#M2349</guid>
      <dc:creator>Koteyk0o</dc:creator>
      <dc:date>2021-04-11T11:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186522#M2359</link>
      <description>Up, help guys</description>
      <pubDate>Mon, 12 Apr 2021 10:06:06 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186522#M2359</guid>
      <dc:creator>Koteyk0o</dc:creator>
      <dc:date>2021-04-12T10:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186572#M2367</link>
      <description>&lt;P&gt;Hey there, help's here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's dive right into this. You can find more information about removing tracks from a playlist here:&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/#endpoint-remove-tracks-playlist" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/#endpoint-remove-tracks-playlist.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use that endpoint to remove tracks. Here's an example request:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X "DELETE" "https://api.spotify.com/v1/playlists/PLAYLISTID/tracks" --data "{\"tracks\":[{\"uri\":\"TRACKID\"}]}" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer XXXXX"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;That should help here. Let me know how you get on!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Hubo&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:14:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186572#M2367</guid>
      <dc:creator>Hubo</dc:creator>
      <dc:date>2021-04-12T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186587#M2370</link>
      <description>&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My request is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"tracks": [{"uri": "spotify:track:1L3AZIJzMvE08VvBkeFJvg"}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And API deletes all tracks in playlist, which matches URI&amp;nbsp;&lt;STRONG&gt;spotify:track:1L3AZIJzMvE08VvBkeFJvg&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, i have 5 songs with URI&amp;nbsp;&lt;STRONG&gt;spotify:track:1L3AZIJzMvE08VvBkeFJvg&lt;/STRONG&gt; in playlist, and this request deletes all songs that matches this URI. But i want to delete 1 song, not all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my video with my actions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/ZbAOVjb1r4I" target="_blank" rel="noopener"&gt;https://youtu.be/ZbAOVjb1r4I&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:46:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5186587#M2370</guid>
      <dc:creator>Koteyk0o</dc:creator>
      <dc:date>2021-04-12T11:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188050#M2384</link>
      <description>Help</description>
      <pubDate>Wed, 14 Apr 2021 13:19:49 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188050#M2384</guid>
      <dc:creator>Koteyk0o</dc:creator>
      <dc:date>2021-04-14T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188507#M2385</link>
      <description>&lt;P&gt;There's another format for the body of the request that is missing from the documentation. You can specify the position of the items in the playlist:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "tracks": [
        {
            "uri": "spotify:track:4HDLmWf73mge8isanCASnU",
            "positions": [1, 4]
        },
        {
            "uri": "spotify:track:0bxcUgWlOURkU6lZt4zog0",
            "positions":[2, 3]
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;Use the same endpoint mentioned in the previous comments.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 03:43:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188507#M2385</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-04-15T03:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188509#M2386</link>
      <description>See here: &lt;A href="https://developer.spotify.com/console/delete-playlist-tracks/" target="_blank"&gt;https://developer.spotify.com/console/delete-playlist-tracks/&lt;/A&gt;</description>
      <pubDate>Thu, 15 Apr 2021 03:46:58 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188509#M2386</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-04-15T03:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188868#M2393</link>
      <description>&lt;P&gt;Yeah, thanks, it works.&lt;/P&gt;&lt;P&gt;I tested with position parameter&amp;nbsp;previously, but it didn't work.&lt;BR /&gt;Only then I realized that the tracks are added to the end of the playlist, not the beginning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 14:39:26 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5188868#M2393</guid>
      <dc:creator>Koteyk0o</dc:creator>
      <dc:date>2021-04-15T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5753103#M11890</link>
      <description>&lt;P&gt;is this still supported? can't get positions to work&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2023 22:54:52 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/5753103#M11890</guid>
      <dc:creator>aaysus</dc:creator>
      <dc:date>2023-12-16T22:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How delete one or more elements from playlist?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/6021798#M13587</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;For me works.&amp;nbsp;&lt;BR /&gt;Just make sure that first it works without the positions.&lt;BR /&gt;&lt;BR /&gt;Then pass in an integer, if you are using variable make sure it is also an integer.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   "tracks": [
            {
            "uri": `spotify:track:${songId}`,
            "positions": [songToRemoveIndex]
          }
          ]&lt;/LI-CODE&gt;&lt;P&gt;songToRemoveIndex -&amp;gt;&amp;nbsp;parseInt(event.target.getAttribute('index'), 10)&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 09:17:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-delete-one-or-more-elements-from-playlist/m-p/6021798#M13587</guid>
      <dc:creator>balage4</dc:creator>
      <dc:date>2024-04-22T09:17:24Z</dc:date>
    </item>
  </channel>
</rss>

