if (index == null)
Command.error("Index '" + name + "' does not exists");
if (action.equals("clean")) {
try {
index.clean(180); // Timeout after 3 minutes.
} catch (SplunkException e) {
if (e.getCode() == SplunkException.INTERRUPTED) {
// User pressed Ctrl-C
return;
} else {