API Center
Introduction
API-Key Authentication
AK/SK Authentication
APM
Edge Application
CDN Pro
Edge Computing Hosting
IAM
Media Acceleration Live Broadcast
Media Acceleration-Live
Media Acceleration
Cloud Live
Low Latency Streaming
Cloud VoD
Media Processing
Bandwidth Report
StatusCode Report
Upload Assets
Manage Assets
GetVideoList
VideoEdit
VideoBlock
VideoEnable
DeleteVideo
DeleteMaterial
GetMaterialList
MaterialEdit
DeleteAudio
GetAudioList
EditAudio
DeleteVideoByCategory
DeleteCategory
CreateCategory
GetCategoryList
Playback
API Shield
Application Shield
Web Application Firewall
Flood Shield
Cloud Security 2.0
Bot Shield
Flood Shield 2.0
Dynamic Web Acceleration
Content Acceleration
CloudDNS
Object Storage
Local Storage
Certificate MGMT
Content MGMT
IP Check
Cloud Monitor
Log Download
Others

DeleteVideo

Update time: 2024-07-29 17:01:26

Delete the uploaded video by calling deleteVideo.

  • Single user trigger frequency: 300/5min
  • Applicable Products: Cloud VoD

Request

Body Params

NameDescription
*videoIdString
id of the video you want to delete
validateOccupyInteger
Occupied check, default check 0 uncheck 1 check
notifyUrlString
Delete the result callback notification address
isAsyncInteger
Whether to delete asynchronously, the default value is 1; 0: delete files synchronously, 1: delete files asynchronously
onlyDeleteSourceInteger
The default value is 0; 0: delete all files (including original files and Transcoding files), 1: delete only the original file

Response

Body Params

NameDescription
codeInteger
Result status code, 200 indicates success
messageString
Return message
dataString
Return data

Error code

Error code(code)Description(message)HTTP statusSemantic
400Resource occupied200Resource occupied
1502The video doesn't exist!200The video doesn't exist!
1522You have no permission to delete this video200You have no permission to delete this video
1569Video disable operation200Video disable operation

Example

JSON
JSON
Request example
Copy
#!/bin/bash
username='example_username'
apiKey='example_apiKey'
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/vod/videoManage/deleteVideo" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "x-cnc-auth-method: BASIC" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
	"videoId":"XXXXXXXXXXX",
	"validateOccupy":1
}'
Response example
Copy
{
    "code": 200,
    "data": {"taskId":"123456789"},
    "message": "Operation succeeded"
}

Directory

  • Request
  • Response
  • Error code
  • Example
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!