cURL
curl --location --request DELETE 'https://api.inworld.ai/voices/v1/pvcVoices/<voice-id>/samples/<sample-id>' \
--header "Authorization: Basic $INWORLD_API_KEY"import requests
voice_id = "<voice-id>"
sample_id = "<sample-id>"
url = f"https://api.inworld.ai/voices/v1/pvcVoices/{voice_id}/samples/{sample_id}"
headers = {"Authorization": "Basic <api-key>"}
response = requests.delete(url, headers=headers)
print(response.json())const voiceId = '<voice-id>';
const sampleId = '<sample-id>';
const url = `https://api.inworld.ai/voices/v1/pvcVoices/${voiceId}/samples/${sampleId}`;
const response = await fetch(url, {
method: 'DELETE',
headers: { 'Authorization': 'Basic <api-key>' },
});
const data = await response.json();
console.log(data);{}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Professional Voice Cloning
Delete a PVC voice sample
Removes a single sample from a draft PVC voice. Only allowed while the voice is PVC_VOICE_STATE_DRAFT (or PVC_VOICE_STATE_FAILED).
DELETE
/
voices
/
v1
/
pvcVoices
/
{voiceId}
/
samples
/
{sampleId}
cURL
curl --location --request DELETE 'https://api.inworld.ai/voices/v1/pvcVoices/<voice-id>/samples/<sample-id>' \
--header "Authorization: Basic $INWORLD_API_KEY"import requests
voice_id = "<voice-id>"
sample_id = "<sample-id>"
url = f"https://api.inworld.ai/voices/v1/pvcVoices/{voice_id}/samples/{sample_id}"
headers = {"Authorization": "Basic <api-key>"}
response = requests.delete(url, headers=headers)
print(response.json())const voiceId = '<voice-id>';
const sampleId = '<sample-id>';
const url = `https://api.inworld.ai/voices/v1/pvcVoices/${voiceId}/samples/${sampleId}`;
const response = await fetch(url, {
method: 'DELETE',
headers: { 'Authorization': 'Basic <api-key>' },
});
const data = await response.json();
console.log(data);{}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Removes a single sample from a draft voice. Only allowed while the voice is
PVC_VOICE_STATE_DRAFT (or PVC_VOICE_STATE_FAILED); this endpoint returns 409 for a queued, training, or ready voice.Authorizations
Your API key. Read permissions are required for GET endpoints. Write permissions are required for POST, PATCH, and DELETE endpoints.
For Basic authentication, please populate Basic $INWORLD_API_KEY. You can create a key in one command with the Inworld CLI: inworld workspace add-key.
Path Parameters
Voice ID that owns the sample.
Sample ID to delete.
Response
A successful response.
The response is of type object.