curl --request DELETE \
--url https://api.royalti.io/artist/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Artist deleted successfully"
}artist/
curl --request DELETE \
--url https://api.royalti.io/artist/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Artist deleted successfully"
}/artist/{id} endpoint allows deleting a specific artist identified by their unique ID.
Method:DELETE
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the artist. |
const response = await fetch('https://api.royalti.io/artist/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);