POST /delete_job
Deletes a video analysis job and all assets associated with it, including the stored video file and metadata.
Endpoint
POST https://api-eu.valossa.com/core/1.0/delete_job
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your Valossa API key |
job_id | string | Yes | The UUID of the job to delete |
Response
A successful response returns HTTP 200 confirming the deletion.
Examples
curl
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"job_id": "167d6a67-fb99-438c-a44c-c22c98229b93"
}' \
https://api-eu.valossa.com/core/1.0/delete_job
Python
import requests
response = requests.post(
"https://api-eu.valossa.com/core/1.0/delete_job",
json={
"api_key": "YOUR_API_KEY",
"job_id": "167d6a67-fb99-438c-a44c-c22c98229b93"
}
)
print(response.json())
JavaScript
const response = await fetch("https://api-eu.valossa.com/core/1.0/delete_job", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
api_key: "YOUR_API_KEY",
job_id: "167d6a67-fb99-438c-a44c-c22c98229b93"
})
});
const result = await response.json();
console.log(result);
Notes
- This action is permanent and irreversible. The job, its video file, and all associated metadata will be removed.
- Make sure you have downloaded and saved any metadata you need before deleting a job.
- Deleting a job also removes it from the list_jobs results.