DotConnect dc = new DotConnect();
String resultsTableName = getResultsTableName(type);
try {
dc.executeStatement("delete from " + resultsTableName+ " where endpoint_id = '" + endpointId + "'");
} catch (SQLException e) {
throw new DotDataException(e.getMessage(), e);
}
}