}
// delete everything
if (post.containsKey("deletecomplete")) {
if (post.get("deleteIndex", "").equals("on")) {
segment.clear();
}
if (post.get("deleteSolr", "").equals("on") && sb.getConfigBool("federated.service.solr.indexing.enabled", false)) try {
sb.indexSegments.segment(Segments.Process.LOCALCRAWLING).getSolr().clear();
} catch (final Exception e) {
Log.logException(e);