private static Options getOptions() {
    Options options = new Options();
    options.addOption(Option.builder().longOpt(CLUSTER_NAME_ARG).desc("The cluster name").required().type(String.class).hasArg().valueSeparator(' ').build());
    options.addOption(Option.builder().longOpt(FROM_DATE_ARG).desc("Date up until data will be purged.").required().type(String.class).hasArg().valueSeparator(' ').build());
    return options;
  }
Class in charge for driving the cleanup process.
ambari-server/src/main/java/org/apache/ambari/server/cleanup/CleanupDriver.java