try {
AmazonS3SoapBindingStub s3SoapBinding = getSoapBinding();
Calendar timestamp = getTimeStamp( System.currentTimeMillis() );
String signature = ServiceUtils.signWithHmacSha1(getAWSSecretKey(),
Constants.SOAP_SERVICE_NAME + "DeleteBucket" + convertDateToString(timestamp));
s3SoapBinding.deleteBucket(
bucketName, getAWSAccessKey(), timestamp, signature, null);
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new S3ServiceException("Unable to Delete Bucket: " + bucketName, e);