public static void cleanupTenant() throws Exception {
  CasIdmClient idmClient=new CasIdmClient(getIdmHostName());
  int i=0;
  String tenantName=ServerConfig.getTenant(i);
  while (tenantName != null) {
    IdmDataRemover.addTenant(tenantName);
    i++;
    tenantName=ServerConfig.getTenant(i);
  }
  try {
    IdmDataRemover.removeData(idmClient);
  }
 catch (  Exception e) {
    logger.debug("Caught exception while removing data " + e.toString());
  }
}

public static void cleanupTenant ( ) throws Exception { CasIdmClient idmClient = new CasIdmClient ( getIdmHostName ( ) ) ; int i = 0 ; String tenantName = ServerConfig . getTenant ( i ) ; while ( tenantName != null ) { IdmDataRemover . addTenant ( tenantName ) ; i ++ ; tenantName = ServerConfig . getTenant ( i ) ; } try { IdmDataRemover . removeData ( idmClient ) ; } catch ( Exception e ) { logger . debug ( "Caught exception while removing data " + e . toString ( ) ) ; } }
cleans up any tenant data created previously
