Skip to content
Deprecated

Delete an artist

DELETE
/api/v1/artists/{artistId}

This endpoint was used to delete artists. Unfortunately, that caused a lot of controversy. So, this endpoint is now deprecated and should not be used anymore.

Authorizations

Parameters

Path Parameters

artistId*
Typeinteger
Required
Example1

Responses

Bad Request
JSON
{
}

Samples

cURL
curl -X DELETE https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/artists/{artistId}
JavaScript
fetch("https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/artists/{artistId}", { method: "DELETE" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/artists/{artistId}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/artists/{artistId}")
print(response.json())
Powered by VitePress OpenAPI