Skip to main content
DELETE
/
artist
/
{id}
Delete Artist
curl --request DELETE \
  --url https://api.royalti.io/artist/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Artist deleted successfully"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

artist/ Description:
The /artist/{id} endpoint allows deleting a specific artist identified by their unique ID.
Method:
DELETE
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the artist.

Code Examples

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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Artist ID

Response

Success

message
string