public static void cleanSystem(String systemname) {
    { SystemDefinition system = Stella.getSystemDefinition(systemname);

      if (system == null) {
        return;
      }
      { StringWrapper f = null;
        Cons iter000 = SystemDefinition.getSystemFiles(system, Stella.KWD_LISP, true).theConsList;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          f = ((StringWrapper)(iter000.value));
          Stella.deleteFile(f.wrapperValue);
        }
      }
      { StringWrapper f = null;
        Cons iter001 = SystemDefinition.getSystemFiles(system, Stella.KWD_JAVA, true).theConsList;

        for (;!(iter001 == Stella.NIL); iter001 = iter001.rest) {
          f = ((StringWrapper)(iter001.value));
          Stella.deleteFile(f.wrapperValue);
        }
      }
      { StringWrapper f = null;
        Cons iter002 = SystemDefinition.getSystemFiles(system, Stella.KWD_CPP, true).theConsList;

        for (;!(iter002 == Stella.NIL); iter002 = iter002.rest) {
          f = ((StringWrapper)(iter002.value));
          Stella.deleteFile(f.wrapperValue);
        }
      }
      { StringWrapper f = null;
        Cons iter003 = SystemDefinition.getSystemFiles(system, Stella.KWD_LISP_BINARY, true).theConsList;

        for (;!(iter003 == Stella.NIL); iter003 = iter003.rest) {
          f = ((StringWrapper)(iter003.value));
          Stella.deleteFile(f.wrapperValue);
        }
      }
    }
  }