code: private void cleanApps() {
          File AppsDir = new File(serverConfigDir.getAbsolutePath(), "apps");
          if (AppsDir.exists()) {
              cleanDir(AppsDir);
              log(MessageFormat.format(messages.getString("info.element.cleaned"), "apps"));
          } else {
              log(MessageFormat.format(messages.getString("info.directory.noexist"), AppsDir.getAbsolutePath()));
          }
      }
docs: Delete every file/folder in the serverConfigDir/apps dir.