func deleteBucket(c *s3.S3) { putObject(c) _, err := c.DeleteBucket( &s3.DeleteBucketInput{ Bucket: &bucket, }, ) checkError("delete bucket", err, "BucketNotEmpty") }