code: public void clearPref() {
          try {
              ((ClcJavaPreferenceStorage) modules.getPreferences()).getPref().clear();
          } catch (BackingStoreException e) {
              logger.error("Cannot clear preferences", e);
          }
      }
docs: clear java preferences