Deletes a redundancy type conversion task of a bucket.
Usage notes
-
Requires the
oss:DeleteBucketDataRedundancyTransitionpermission. For more information, see Grant a custom policy. -
Each region has its own endpoints. For more information about regions and their endpoints, see Regions and Endpoints.
-
Tasks in the Processing state cannot be deleted.
Request syntax
DELETE /?redundancyTransition&x-oss-redundancy-transition-taskid=xxx HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Request headers
This operation uses only common request headers. For more information, see Common request headers.
Request parameters
|
Parameter |
Type |
Required |
Example |
Description |
|
x-oss-redundancy-transition-taskid |
String |
Yes |
4be5beb0f74f490186311b268bf6**** |
The ID of the redundancy type conversion task. |
Response headers
This operation returns only common response headers. For more information, see Common response headers.
Examples
-
Sample request
DELETE /?redundancyTransition&x-oss-redundancy-transition-taskid=4be5beb0f74f490186311b268bf6**** HTTP/1.1 Host: examplebucket.oss-cn-hangzhou.aliyuncs.com Date: Thu, 17 Apr 2025 08:40:17 GMT Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e -
Sample response
HTTP/1.1 204 OK x-oss-request-id: 534B371674E88A4D8906**** Date: Fri, 17 Nov 2023 08:40:17 GMT Server: AliyunOSS
ossutil
For information about the ossutil command that corresponds to the DeleteBucketDataRedundancyTransition operation, see delete-bucket-data-redundancy-transition.
Error codes
|
Error code |
HTTP status code |
Description |
|
NoSuchBucket |
404 |
The specified bucket does not exist. |
|
BucketDataRedundancyTransitionTaskNotExist |
404 |
The specified conversion task does not exist. |
|
BucketDataRedundancyTransitionTaskStatusConflict |
409 |
The conversion task is in the Processing state and cannot be deleted. |