Delete a video by ID. The video is removed from your library and can no longer be accessed. The response returns the metadata of the deleted video.
This action is permanent and cannot be undone. The video file and all associated data are deleted.
Endpoint
Authentication
Pass an all_access API key as a Bearer token in the Authorization header.
Your API key. Format: Bearer <api_key>. Must have all_access permission.
Path parameters
The ID of the video to delete.
Response
ID of the domain the video belonged to.
Name of the deleted video.
ISO 8601 timestamp when the video was originally created.
ISO 8601 timestamp of the video’s last update before deletion.
Error responses
| Status | Description |
|---|
400 | The provided id is not a valid number. |
403 | The video exists but belongs to a different account. |
404 | No video found with the given ID in your account. |
Examples
curl --request DELETE \
--url https://api.demomatic.tech/v1/videos/123 \
--header 'Authorization: Bearer YOUR_API_KEY'
Response
{
"data": {
"id": 123,
"domain_id": 45,
"filename": "Product Tour Q1 2024",
"created_at": "2024-01-15T10:00:00.000Z",
"updated_at": "2024-01-15T10:05:00.000Z"
}
}