private void commandRm(CliCommand command) {
    String parameters = command.getParameters();
    List<Integer> execIds = new ArrayList<>();
    execIds.addAll(splitExecutionIds(parameters));
    for (Integer id : execIds) {
      try {
        ExecutionStatus status = executor.queryExecutionStatus(id);
        if (status == ExecutionStatus.Running) {
          writer.println(String.format("Execution %d is still running. Stop it first.", id));
          continue;
        }
        executor.removeExecution(exeContext, id);
        executions.remove(id);
      } catch (ExecutorException e) {
        writer.println("Error: " + e);
        LOG.error("Error in commandRm: ", e);
      }
    }
    writer.flush();
  }
Handles the given command
@param command input {@link CliCommand} to handle
@return false if command is to quit, or fatal error happened that Shell should not continue running. True o.w.
@throws CommandHandlerException if unrecoverable error happened while handling the input {@link CliCommand}
samza-sql-shell/src/main/java/org/apache/samza/sql/client/impl/CliCommandHandler.java