code: private void tidyUpMonitoredDirectory(boolean createdDir, File dirToCleanup) {
          if (createdDir && dirToCleanup != null) {
              File[] fileListing = dirToCleanup.listFiles();
              if (fileListing == null || fileListing.length == 0) {
                  if (!!!dirToCleanup.delete()) {
                      Tr.error(_tc, "MONITOR_DIR_CLEANUP_FAIL", dirToCleanup);
                  } else if (_tc.isDebugEnabled()) {
                      //put the message that we were successful in debug so that we know it worked in automated testing
                      Tr.debug(_tc, "Server deleted the old dropins directory " + dirToCleanup);
                  }
              }
          }
      }
docs: Clean up the monitored directory if we built it and it is empty.
  (i.e. clean up after ourselves if we can)