### Question:
S3App { private static void deleteAllObjectsAndBucket(AWSS3Service awsService, final String bucketName) { log.info("deleteAllObjectsAndBucket : bucketName: {}", bucketName); try { ObjectListing objectListing = awsService.listObjects(bucketName); while (true) { Iterator<S3ObjectSummary> objIter = objectListing.getObjectSummaries().iterator(); while (objIter.hasNext()) { awsService.deleteObject(bucketName, objIter.next().getKey()); } if (objectListing.isTruncated()) { objectListing = awsService.listNextBatchOfObjects(objectListing); } else { break; } } VersionListing versionList = awsService.listVersions(new ListVersionsRequest().withBucketName(bucketName)); while (true) { Iterator<S3VersionSummary> versionIter = versionList.getVersionSummaries().iterator(); while (versionIter.hasNext()) { S3VersionSummary vs = versionIter.next(); awsService.deleteVersion(bucketName, vs.getKey(), vs.getVersionId()); } if (versionList.isTruncated()) { versionList = awsService.listNextBatchOfVersions(versionList); } else { break; } } awsService.deleteBucket(bucketName); } catch (AmazonServiceException e) { e.printStackTrace(); } catch (SdkClientException e) { e.printStackTrace(); } }  static void main(String[] args);  }### Answer:
@Test public void test_bucket_삭제하기() { deleteAllObjectsAndBucket(s3client, BUCKET_NAME); }