if (askQuestion("Host descriptions",
"Are you sure that you want to remove all host descriptions in this registry?")) {
AiravataRegistry registry = getRegistry();
List<HostDescription> descriptions = getHostDescriptions().getDescriptions();
for (HostDescription descriptionWrap : descriptions) {
registry.deleteHostDescription(descriptionWrap.getType().getHostName());
}
refresh();
reloadTreeNode(tree, this);
}
}