System.out.println("Usage: object-delete -bucket=<bucket name> -name=<object name>");
System.exit(0);
}
try {
DeleteObject request = new DeleteObject();
request.setAWSAccessKeyId("TODO");
request.setBucket(params.get("bucket"));
request.setKey(params.get("name"));
request.setSignature("TODO");
request.setCredential("TODO");
request.setTimestamp(Calendar.getInstance());
DeleteObjectResponse response = serviceStub.deleteObject(request);
if(response.getDeleteObjectResponse().getCode() == 200)
System.out.println("Object " + params.get("name") + " has been deleted successfully");
else