Feature Overview
This 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.
Requests
Sample Request
DELETE /?lifecycle HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Note
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com, where <BucketName-APPID> is the bucket name with the APPID suffix, such as examplebucket-1250000000. You can refer to the Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Convention documentation. <Region> represents the available regions for COS, which can be found in the Regions and Access Domain Names documentation.
Authorization: Auth String (For more information, see Request Signature.)
Request Header
Request Body
The request body of this request is empty.
Response
Response Header
Response Body
The response body is empty.
Error Codes
Examples
Requests
DELETE /?lifecycle HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 16 Aug 2017 12:59:09 GMTAuthorization:q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR98JM&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 ContentContent-Type: application/xmlDate: Wed, 16 Aug 2017 12:59:09 GMTServer: tencent-cosx-cos-request-id: NTk5NDQxOWNfMjQ4OGY3Xzc3NGRf****