Deleting File Fragments

Last updated: 2020-02-26 14:36:48

PDF

Introduction

If you try to delete the specified bucket but the system prompts that " Deletion failed. Please delete the valid data in the bucket first ", you can enter Incomplete Multipart Uploads To view the files that have not been completely uploaded and delete them. The bucket can be deleted only after you confirm that all completely and partially uploaded files have been deleted from the bucket.

  • During the object upload progress, the files that are paused or canceled will be displayed in Incomplete Multipart Uploads . Files can be viewed in Objects Only after they are completely uploaded.
  • Multipart uploads and normal objects will occupy storage space, so it will produce storage capacity cost.

Delete multipart uploads manually

  1. Log in to the COS Console And click Bucket List In the left sidebar to enter the bucket list page.
  2. Click the bucket you want to delete to enter the bucket details page.
  3. On the Objects Page, select the Multipart Upload Tab to view the files that have not been completely uploaded.
  4. You can click .setRegion(region) To the right of an incomplete multipart upload to delete it or click Clear Incomplete Multipart Uploads At the top to delete all incomplete multipart uploads.
  5. After you perform the "Clear Incomplete Multipart Uploads" or "Delete" operation, the list will be empty.

Configure lifecycle to clean up multipart uploads regularly

  1. Log in to the COS Console And click Bucket List In the left sidebar to enter the bucket list page.
  2. Click the bucket you want to delete to enter the bucket details page.
  3. Click Advanced configuration in the menu on the left, and then go down to the Lifecycle configuration item.
  4. Click "add Rule", and the configuration information is shown in the following figure. The rule here is set to be deleted 7 days after incomplete multipart uploads is created under the entire Bucket scope.
  5. Click "OK" to see the lifecycle rules that have been successfully set in the console.