#Bucket deletion

1 messages · Page 1 of 1 (latest)

pine shore
#

Hello,

i have a problem to delete a bucket.

aws s3api list-objects --bucket XXX --profile XXXX --no-verify-ssl --no-verify-ssl --no-cli-pager --output json
{
"RequestCharged": null,
"Prefix": ""
}

aws s3api delete-bucket --bucket XXX --profile XXXX --no-verify-ssl --no-cli-pager --output json

An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty.

I also use the button , on gridmanager and i got "the same" error message.

So i dont see any objects here , so what i doing wrong ?

zealous star
#

there are probably deleted item versions in the bucket. you can use rclone (rclone purge) for example to delete all objects

pine shore
#

So as i understand , aws s3api list-objects --bucket XXX --profile XXXX --no-verify-ssl --no-verify-ssl --no-cli-pager --output json should give me all Objects ?

#

rclone purge :

2025/12/19 11:22:56 ERROR : Attempt 1/3 failed with 1 errors and: operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: 1766139745581574, HostID: 12368267, api error BucketNotEmpty: The bucket you tried to delete is not empty.

pine shore
#

No versions there also no delete marker.

quaint geyser
pine shore
#

Ok, i created the policy on 23.12.2025 but i cant delete the bucket.