All Products
Search
Document Center

DeleteMultipartUpload

Last Updated: Jul 11, 2019

Description

You can call this operation to immediately delete part files generated during the upload.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to DeleteMultipartUpload.
MediaId String Yes The ID of the media.
MediaType String Yes The type of the media. Valid value: video (indicating audio and video files).

After a file is uploaded, its part files are automatically deleted. In addition, the bucket allocated by ApsaraVideo for VOD provides the mechanism of automatically deleting part files upon their expiration. When you call the DeleteVideo operation, video part files are automatically deleted. The DeleteMultipartUpload operation does not delete the mezzanine file and transcoded file of a video.

Response parameters

Parameter Type Description
RequestId String The ID of the request.

API examples

Sample request

http://vod.cn-shanghai.aliyuncs.com/?Action=DeleteVideoMultipart&VideoId=1234abcd&Format=JSON&<Common request parameters>

Sample response

JSON format

{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58"
}

Error codes

Error code Error message HTTP status code Description
InvalidParameter The specified parameter "MediaType" is invalid. 400 The error message returned because the specified MediaType parameter is invalid.
InvalidMultipartUpload.NotFound The multipart upload not exist. 400 The error message returned because no video part file exists.
InvalidVideo.NotFound The video does not exist. 400 The error message returned because the specified video does not exist.
InvalidFile.NotFound The file does not exist. 400 The error message returned because the specified video mezzanine file does not exist.
InvalidStorage.NotFound can't find storage. 400 The error message returned because the bucket for storing the specified video mezzanine file does not exist.
AccessDenied Access denied by authorizer's policy. 400 The error message returned because ApsaraVideo for VOD is unauthorized to access your private bucket.