@Override
 public void deleteBlob(BlobEntry blobEntry) throws UnexpectedServerException {
   try {
     gcsService.delete(new GcsFilename(bucketName, blobEntry.getName()));
   } catch (IOException ex) {
     logger.log(Level.INFO, "Failed to delete blob with name '" + blobEntry.getName() + "'", ex);
     throw new UnexpectedServerException();
   }
 }
  public static boolean deleteImage(String objectName) {
    try {
      GcsService gcsService = GcsServiceFactory.createGcsService(RetryParams.getDefaultInstance());
      GcsFilename fileName = new GcsFilename(getBucket(), objectName);

      return gcsService.delete(fileName);
    } catch (IOException ex) {
      log.log(Level.WARNING, "Exception while deleting file", ex);
      return false;
    }
  }