DELETE Bucket lifecycle

Last updated: 2018-08-13 10:22:27



DELETE Bucket lifecycle is used to delete the life cycle configuration of the Bucket. If the Bucket does not have a lifecycle rule configured, it will return NoSuchLifecycleConfiguration.

Grammar example:

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

Authorization: Auth String , see the section Request Signature for details.

Request line

DELETE /?lifecycle HTTP/1.1

The API interface accepts a DELETE request.

Request header

Common headers

The implementation of this request operation uses the common request header. For details on the common request header, see the Common Request Header section.

Non-common header

The request operation has no special request header information.

Request body

The request request body is empty.


Response header

Common response header

The response uses a common response header. For a detailed description of the public response header, see the Common Response Header section.

Unique response header

The request operation has no special response header information.


The request response body is empty.

Error codes

Error code Description Status Code
None Deleted successfully. The response body returns empty 204 No Content
NoSuchBucket The Bucket does not exist 404 Not Found

Sample Code


DELETE /?lifecycle HTTP/1.1
Date: Wed, 16 Aug 2017 12:59:09 GMT


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