curl --request DELETE \
--url https://api.royalti.io/asset/{id}/media/{mediaName} \
--header 'Authorization: Bearer <token>'{
"message": "Media deleted successfully"
}Deletes a specific media file (e.g., audio, artwork) associated with an asset.
curl --request DELETE \
--url https://api.royalti.io/asset/{id}/media/{mediaName} \
--header 'Authorization: Bearer <token>'{
"message": "Media deleted successfully"
}const response = await fetch('https://api.royalti.io/asset/example-id/media/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The unique identifier of the asset
The name of the media file to delete
Media deleted successfully
"Media deleted successfully"