@Override
  public void clearTable(String tableName) throws SQLException {
    if (tableExists(tableName)){
      String sqlQuery = "DELETE FROM " + convertObjectName(tableName);
      executeQuery(sqlQuery);
    } else {
      LOG.warn("{} table doesn't exists, skipping", tableName);
    }
  }
Remove all rows from the table

@param tableName name of the table
ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java