public void delete(String entityId) throws RetryableException {
  URI uri=uris.delete(entityId);
  log.debug("Deleting entity {} using {}",entityId,uri);
  try {
    JSONObject result=checkApi(getJson(postWithToken(uri)));
    log.debug("Deleted: {}",result);
  }
 catch (  IOException|ParseException e) {
    throw new RetryableException("Error deleting page",e);
  }
}

public void delete ( String entityId ) throws RetryableException { URI uri = uris . delete ( entityId ) ; log . debug ( "Deleting entity {} using {}" , entityId , uri ) ; try { JSONObject result = checkApi ( getJson ( postWithToken ( uri ) ) ) ; log . debug ( "Deleted: {}" , result ) ; } catch ( IOException | ParseException e ) { throw new RetryableException ( "Error deleting page" , e ) ; } }
delete entity from repository .
