This is how I am attempting the deletion:
payload = {
"data": [
{
"position": 0,
"type": "library-songs"
}
]
};
const response = await fetch(url, {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${DEVELOPER_TOKEN}`,
'Music-User-Token': USER_TOKEN,
'Content-Type': 'application/json'
},
body: JSON.stringify(payload)
});
The USER_Token was generated via:
music.authorize({ scopes: ['library-modify'] });
I can successfully create a playlist and add to it using those tokens, so they should be OK. (this is in node.js)
I can find no documentation for any track deletion API, this code is an approach I have seen in posts around the web, but I do not know if that method is in fact the right approach.
Topic:
Media Technologies
SubTopic:
General
Tags: