Delete Single Video

Last update:2023-03-15 10:40:34

Description

Delete the specified video through this interface.

Note: This interface will delete the source video file, transcoding file, cover, screenshot, trial-watch video file, whiteboard and chat record corresponding to the video. Please be aware of this before deletion.

Request Description

Request method POST/GET
Interface Address https://api.cloudv.haplat.net/vod/videoManage/deleteVideo
If token is needed The verification token is needed

Request Parameters

Parameter Type Required Remarks
videoId string Yes The id of the video to be deleted.
validateOccupy int no 0 no check, 1 check, default check

Response Parameters

For common return results, please refer to the Response.

Example

Input example

curl -X POST 
  http://api.cloudv.haplat.net/vod/videoManage/deleteVideo 
  -H 'content-type: application/x-www-form-urlencoded; charset=utf-8' 
  -H "Host: api.cloudv.haplat.net" 
  -H "Authorization: your token" 
  -H "X-WS-Timestamp: current timestamp" 
  -H "X-WS-AccessKey: your AccessKey ID" 
  -d 'videoId=9B0F7BA8BCB9D056D4C24ADDBF821D10'

Error Code

The following error codes are related to the business logic of the interface, the common error code can be found at Common Error Codes.

Error code Description
400 Resources are occupied
1502 Video does not exist!
1522 You have no permission to delete the video
1569 Video operation is forbidden
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!