Delete a voice
Delete one of your project's cloned voices, at the provider and in Lykia.
MarkdownDELETE
/v1/audio/voices/{id}Deletes a cloned voice of the key's project at the provider and in Lykia. Ready-made voices cannot be deleted.
Example
Request
curl -X DELETE https://api.getlykia.com/v1/audio/voices/lvc_xg3eZdWjqZ19YY04ozRw \
-H "Authorization: Bearer $LYKIA_API_KEY"import os
import requests
VOICE_ID = "lvc_xg3eZdWjqZ19YY04ozRw"
response = requests.delete(
f"https://api.getlykia.com/v1/audio/voices/{VOICE_ID}",
headers={"Authorization": f"Bearer {os.environ['LYKIA_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json()["deleted"])Response200
{
"id": "lvc_xg3eZdWjqZ19YY04ozRw",
"object": "voice",
"deleted": true
}Errors
404 with voice_not_found when the id is unknown or belongs to another project.