Cancels a multipart upload task and deletes the parts uploaded in the task.
The upload ID of the task is required to call the AbortMutipartUpload operation.
The parts that correspond to the upload ID not uploaded
After you call the AbortMutipartUpload operation, parts that are being uploaded are not deleted.
The parts that correspond to the upload ID uploaded
If the CompleteMutipartUpload operation is called, no parts or objects are deleted and the NoSuchUpload error is reported after you call the AbortMutipartUpload operation. This is because no operations are allowed by using the upload ID of the task after the CompleteMutipartUpload operation is called.
If the CompleteMutipartUpload operation is not called, only parts that are uploaded are deleted after you call the AbortMutipartUpload operation.
We recommend that you complete or cancel multipart upload tasks that are not complete in a timely manner because parts that are uploaded by these tasks consume the storage space and incur storage fees.
DELETE /ObjectName?uploadId=UploadId HTTP/1.1 Host: BucketName.oss-cn-hangzhou.aliyuncs.com Date: GMT Date Authorization: Signature
The ID of the multipart upload task.
For more information about other common request headers, such as Host and Date, see Common HTTP headers.
This request contains only common response headers. For more information, see Common HTTP headers.
Delete /multipart.data?&uploadId=0004B9895DBBB6E**** HTTP/1.1 Host: oss-example.oss-cn-hangzhou.aliyuncs.com Date: Wed, 22 Feb 2012 08:32:21 GMT Authorization: OSS qn6qrrqxo2oawuk53otf****:J/lICfXEvPmmSW86bBAfMmUm****
HTTP/1.1 204 Server: AliyunOSS Content-length: 0 Connection: keep-alive x-oss-request-id: 059a22ba-6ba9-daed-5f3a-e48027df**** Date: Wed, 22 Feb 2012 08:32:21 GMT x-oss-server-time: 86
You can use OSS SDKs for the following programming languages to call the AbortMultipartUpload operation:
HTTP status code
The specified upload ID does not exist.