Unable to delete bucket from S3 CLI interface due to 404 (NoSuchBucket) The specified bucket does not exist
Applies to
NetApp StorageGRID
Issue
- Unable to delete bucket due to S3 error:
404 (NoSuchBucket): The specified bucket does not exist
although it still shows present when listing out the buckets. - Following example shows the bucket exists still when listing and error when attempting to remove it:
Test@sp-1234:~ 13:28:47 $ aws s3 ls --profile Test_Prod --endpoint-url https://s3.netapp.cloud
2023-06-14 09:17:02 bucket_1
2020-09-10 11:25:11 bucket_2
2020-10-15 10:21:41 test-bucket
Test@sp-1234:~ 13:28:57 $ aws s3 rb --profile Test_Prod --endpoint-url https://s3.netapp.cloud test-bucket
An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist.