Deletes a complete video, including its source file, transcoded streams, and thumbnails.
Operation description
Usage notes
This operation physically deletes the video. The video cannot be recovered. Proceed with caution.
This operation supports batch deletion.
When you delete a video, its source file, transcoded streams, and thumbnails are also deleted. However, the CDN cache is not purged at the same time. If needed, you can use the purge feature in the ApsaraVideo VOD console to remove obsolete data from CDN nodes. For more information, see Refresh and prefetch.
QPS limit
The queries per second (QPS) limit for a single user is 30. If you exceed this limit, API calls are throttled. This may affect your business. We recommend that you call this API operation at a reasonable rate. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DeleteVideo |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VideoIds |
string |
No |
A list of video IDs. You can specify one or more video IDs. Separate multiple IDs with commas (,). You can specify a maximum of 20 IDs. You can obtain video IDs in the following ways:
|
e44ebf1147hdsa2d2adbea8b****,e44ebf11oj984adbea8****,73ab850b4f6f4b6e91d24d81d54**** |
| ReferenceIds |
string |
No |
A list of custom IDs. You can specify one or more custom IDs. Separate multiple IDs with commas (,). You can specify a maximum of 20 IDs. |
123-123,1234-1234 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
E4EBD2BF-5EB0-4476-8829-9D94E1B1**** |
| ForbiddenVideoIds |
array |
A list of video IDs for which the operation is forbidden. Note
This is usually because you do not have the required permissions. |
|
|
string |
A list of video IDs for which the operation is forbidden. Note
This is usually because you do not have the required permissions. |
73ab850b4f6f4b6e91d24d81d54**** |
|
| NonExistVideoIds |
array |
A list of video IDs that do not exist. |
|
|
string |
A list of video IDs that do not exist. Note
If some of the video IDs that you want to delete do not exist, the IDs of these videos are returned. If all the video IDs that you want to delete do not exist, a 404 error is reported. |
e44ebf1147hdsa2d2adbea8b**** |
|
| NonExistReferenceIds |
array |
A list of custom IDs that do not exist. |
|
|
string |
A list of custom IDs that do not exist. |
123-123 |
Examples
Success response
JSON format
{
"RequestId": "E4EBD2BF-5EB0-4476-8829-9D94E1B1****",
"ForbiddenVideoIds": [
"73ab850b4f6f4b6e91d24d81d54****"
],
"NonExistVideoIds": [
"e44ebf1147hdsa2d2adbea8b****"
],
"NonExistReferenceIds": [
"123-123"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.