public void testDeleteObject(String bucketName,String objectName) {
try{ s3.deleteObject(new DeleteObjectRequest(bucketName, objectName)); }catch (AmazonServiceException e) { System.err.println(e.getErrorMessage()); System.exit(1); } System.out.println("Done!"); } |