I set up an S3 bucket following Enable Access Logs for Your Classic Load Balancer but I accidentally used the ap-southeast-2 account ID rather than the us-east-1 account ID in the bucket policy.
As a result the bucket does not show up in the AWS console or in the CLI and any attempt to do CLI operations on it return an AccessDenied error.
How can I delete this bucket so I can recreate it with the correct account ID in the bucket policy? It's my AWS account so permissions shouldn't be a problem in theory.
https://aws.amazon.com/premiumsupport/knowledge-center/s3-accidentally-denied-access/ (generate a root user access key under My Security Credentials -> Access keys then use it to run delete-bucket-policy using aws-cli) should be the solution but I still get an AccessDenied error.