Deletes one or more video or audio streams and their storage files at a time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteStream |
The operation that you want to perform. Set the value to DeleteStream. |
JobIds | String | Yes | 35eb4dbda18c4*****9cc0025df374b4 |
The job IDs for deleting media streams.
|
VideoId | String | Yes | e1e243b4254*****8248197d6f74f9 |
The ID of the video. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 25818875-5F78-4A*****F6-D7393642CA58 |
The ID of the request. |
Examples
Sample requests
https://vod.{ApiRegion}.aliyuncs.com/?Action=DeleteStream
&JobIds=35eb4dbda18c4*****9cc0025df374b4
&VideoId=e1e243b4254*****8248197d6f74f9
&<Common request parameters>
Sample success responses
XML
format
<DeleteStreamResponse>
<RequestId>25818875-5F78-4A*****F6-D7393642CA58</RequestId>
</DeleteStreamResponse>
JSON
format
{
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58"
}
Error codes
For a list of error codes, visit the API Error Center.
Common errors
The following table describes the common errors that this operation can return.
Error code |
Error message |
HTTP status code |
Description |
---|---|---|---|
JobIdsExceededMax |
The JobIds exceeded maximum. |
400 |
The error message returned because the list of job IDs exceeds the maximum length. |
InvalidVideo.NotFound |
The video does not exist. |
404 |
The error message returned because the video does not exist. |
InvalidStream.NotFound |
The stream does not exist. |
404 |
The error message returned because the media stream does not exist. |
DeleteStreamFailed |
Deleting stream has failed due to some unknown error. |
503 |
The error message returned because the system failed to delete the media stream. Try again later. |
SDK examples
We recommend that you use a server SDK to call this operation. For more information about the sample code that is used to call this operation in various languages, see the following topics: