This post is also available in: English
Those days, I was trying to remove a bucket from my Oracle Cloud Infrastructure and I kept receiving the error when confirming the delete operation:
There is (still) no way to view through the console what are those "multipart downloads" that are blocking my delete. However, checking with oci-cli, I can see something:
$ oci os multipart list --bucket-name REGION_MIGRATION { "data": [ { "bucket": "REGION_MIGRATION", "namespace": "xxx", "object": "OCASNPRDORADB01_IMAGE_IMAGE_EXPORT2", "time-created": "2019-10-25T22:30:03.027000+00:00", "upload-id": "COPY_153-956b-5954-4de7-f9a9693abcd" }, { "bucket": "REGION_MIGRATION", "namespace": "xxx", "object": "OCASNPRDORADB01_IMAGE_IMAGE_EXPORT_teste", "time-created": "2019-10-25T22:33:17.698000+00:00", "upload-id": "COPY_74c-7f22-34f7-3a30-847f7ee4efab" }, { "bucket": "REGION_MIGRATION", "namespace": "xxx", "object": "OCASNPRDORADB01_IMAGE_IMAGE_EXPORT_teste", "time-created": "2019-10-25T22:34:51.427000+00:00", "upload-id": "COPY_80e-d664-e43a-f40d-f4760cfbcdef" } ] }
to remove those incomplete multiparts tasks, I need to run "oci multipart os abort" command line:
$ oci os multipart abort --bucket-name REGION_MIGRATION \ --object-name OCASNPRDORADB01_IMAGE_IMAGE_EXPORT2 --upload-id COPY_153-956b-5954-4de7-f9a9693abcd WARNING: Are you sure you want to permanently remove this incomplete upload? [y/N]: y $ oci os multipart abort --bucket-name REGION_MIGRATION \ --object-name OCASNPRDORADB01_IMAGE_IMAGE_EXPORT_teste --upload-id COPY_74c-7f22-34f7-3a30-847f7ee4efab WARNING: Are you sure you want to permanently remove this incomplete upload? [y/N]: y $ oci os multipart abort --bucket-name REGION_MIGRATION \ --object-name OCASNPRDORADB01_IMAGE_IMAGE_EXPORT_teste --upload-id COPY_80e-d664-e43a-f40d-f4760cfbcdef WARNING: Are you sure you want to permanently remove this incomplete upload? [y/N]: y
And now listing again:
$ oci os multipart list --bucket-name REGION_MIGRATION $
Voilá! Nothing is returned.
Trying to remove the bucket again now succeeded.
Have you enjoyed? Please leave a comment or give a 👍!