Delete Bucket Lifecycle

Last updated:2021-09-14 16:18:08

Description

This Delete interface can delete the lifecycle configuration of a Bucket. If you want to use this interface, you need to be the owner of this bucket.

If the interface is called successfully, 204 will be returned, indicating that the configuration has been deleted successfully.

Since deletion is performed at 0 o’clock every day, if you find something can’t be deleted, you’d better use the delete interface to remove the configuration in advance to avoid data loss.

Request

Grammar

DELETE /?lifecycle HTTP/1.1
Host: {BucketName}.{endpoint}
Date: {date}
Authorization: {SignatureValue}

Note:

Request parameters

The interface does not use request parameters.

Request header

This interface only uses common request headers. For more information, please click Public request headers.

Request content

Do not use request content

Response

Response header

This interface only uses common response headers. For more information, please click Public response headers.

Response content

This interface does not return response content.

Special errors

This interface does not return any special errors. If the bucket is not configured with lifecycle, 204 is also returned without any error.

Example

Request

DELETE /?lifecycle HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyuncs.com
Authorization: authorization string
Date: Tue, 19 Jul 2016 09:12:54 GMT

Response

HTTP/1.1 204 No Content
Date: Tue, 19 Jul 2016 09:28:34 GMT
Server: Tengine
X-Kss-Request-Id: a5398b800e3a4d498bb4a7e017ee9259
Content-Length: 0

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈