You can clear the specified bucket in the COS console. For more information on buckets, see Bucket Overview.
Note:Clearing a bucket will delete all objects and incomplete multipart uploads in this bucket. The deleted data is unrecoverable and inaccessible. Proceed with caution.
Note:If you have a large amount of data in your bucket, clearing the bucket using the console may be slow or even fail due to network reasons. In this case, we recommend you clear the bucket by setting lifecycle configuration.
Log in to the COS console.
Click Bucket List on the left sidebar.
Find the target bucket and click More > Clear Data on the right.
In the pop-up window, enter the name of the bucket you want to clear and click Confirm.
In the pop-up window, click OK.
Log in to the COS console.
Click Bucket List on the left sidebar.
Locate the bucket for which you want to set the lifecycle feature. Click the bucket name to enter its details page.
Click Basic Configurations > Lifecycle and click Add a Rule.
In the Add a Rule pop-up window, set to delete all current and historical versions of files in the entire bucket.
As bucket data deletion is a high-risk operation, you need to click OK to confirm the operation.
You can see that the deletion rule has been set successfully in the lifecycle rule list.
After the lifecycle rule is executed, you can see that both the number and volume of stored objects are zero on the bucket overview page, indicating that the bucket has been cleared. If you no longer use the bucket, you can delete it.
Apakah halaman ini membantu?