code: public void delete(String photoId) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_DELETE);
  
          parameters.put("photo_id", photoId);
  
          // Note: This method requires an HTTP POST request.
          Response response = transport.post(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
          // This method has no specific response - It returns an empty
          // sucess response if it completes without error.
      }
docs: Delete a photo from flickr.
  
  This method requires authentication with 'delete' permission.
  
  @param photoId
  @throws FlickrException