Tenant Cloud Storage Cloud Object Storage API References Deleting the Bucket Lifecycle Configuration

Deleting the Bucket Lifecycle Configuration

Last Updated At: 2025-10-21 09:10:00

Description

The DELETE Bucket lifecycle API is used to delete the lifecycle configuration set for a bucket. If no lifecycle rule is configured for the bucket, NoSuchLifecycleConfiguration will be returned.

Request

Request Example

DELETE /?lifecycle HTTP/1.1
Host: <BucketName-APPID>.<Endpoint>
Date: GMT Date
Authorization: Auth String

Note:

Authorization: Auth String (See Request Signature for details.)

Request Header

Common Headers

This request uses common request headers. For details, see Public Request Headers.

Non-common Headers

This request has no special request header information.

Request Body

The request does not have a request body.

Response

Response Headers

Common Response Headers

This response uses common response headers. For details, see Common Response Headers.

Special Response Headers

There are no special response headers for this response operation.

Response Body

The response body is empty.

Error Code

This request returns the following error codes. For more information, see Error Codes.

Error Code Description HTTP Status Code
None The deletion is successful and the response body returns empty. 204 No Content
NoSuchBucket If this error code is returned, it means there is no such bucket to access. 404 Not Found

Practical Case

Request

DELETE /?lifecycle HTTP/1.1
Host: <BucketName-APPID>.<Endpoint>
Date: Wed, 16 Aug 2017 12:59:09 GMT
Authorization:q-sign-algorithm=sha1&q-ak=AKIDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&q-sign-time=1502859472;1502939472&q-key-time=1502859472;1502939472&q-header-list=host&q-url-param-list=lifecycle&q-signature=49c1414c700643f11139219384332a3ec4e9485b

Response

HTTP /1.1 204 No Content
Content-Type: application/xml
Date: Wed, 16 Aug 2017 12:59:09 GMT
x-cos-request-id: NTk5NDQxOWNfMjQ4OGY3Xzc3NGRfMjE=