All Products
Search
Document Center

DeleteStream

Last Updated: Mar 04, 2019

Description

You can call this operation to delete one or more media (such as video or audio) streams and their storage files. [DO NOT TRANSLATE]

Request parameters

NameTypeRequiredDescription
ActionStringYesThe operation that you want to perform. Set the value to DeleteStream.
VideoIdStringYesThe video ID.
JobIdsStringYesThe IDs of media stream transcoding jobs. Separate multiple job IDs with a comma (,). You can enter a maximum of 20 job IDs for a video.
You can obtain the transcoding job ID (indicated by the JobId parameter) from the PlayInfo structure returned through the GetPlayInfo operation. Each media stream has a unique transcoding job ID.

Response parameters

NameTypeDescription
RequestIdString The GUID generated by Alibaba Cloud for the request.

Examples

Sample requests

  1. http://vod.cn-shanghai.aliyuncs.com/?Action=DeleteStream&VideoId=93ab850b4f6f44eab54b6e91d24d81d3&JobIds=93ab850b4f6f44eab54b6e91d24d81d4,73ab850b4f6f44eab45b6e91d24d81d5&Format=JSON&<Common request parameters>

Note: For more information about common request parameters, see Common parameters.

Sample responses

JSON format

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58"
  3. }

Error codes

The following table lists the error codes that this operation can return. For more information, see Error codes.

Error codeError messageHTTP status codeDescription
JobIdsExceededMaxThe JobIds exceeded maximum.400The error message returned when the list of job IDs exceeds the maximum length.
InvalidVideo.NotFoundThe video does not exist.404The error message returned when the specified video does not exist.
InvalidStream.NotFoundThe stream does not exist.404The error message returned when the specified media stream does not exist.
DeleteStreamFailedDeleting stream has failed due to some unknown error.503The error message returned when the system failed to delete the media stream. Try again later.