code: public static void compactTransient(FluoConfiguration fluoConfig) throws Exception {
      Connector conn = getConnector(fluoConfig);
  
      try (FluoClient client = FluoFactory.newClient(fluoConfig)) {
        SimpleConfiguration appConfig = client.getAppConfiguration();
  
        TransientRegistry transientRegistry = new TransientRegistry(appConfig);
        List<RowRange> ranges = transientRegistry.getTransientRanges();
  
        for (RowRange r : ranges) {
          long t1 = System.currentTimeMillis();
          conn.tableOperations().compact(fluoConfig.getAccumuloTable(),
              new Text(r.getStart().toArray()), new Text(r.getEnd().toArray()), true, true);
          long t2 = System.currentTimeMillis();
          logger.info("Compacted {} in {}ms", r, (t2 - t1));
        }
      }
    }
docs: Compact all transient regions that were registered using {@link TransientRegistry}