title: How to delete Eclipse Secure Storage settings programmatically
body: <p>How can I delete the saved content in eclipse secure storage programmatically? I need to reset all setting before I run some SWTBot tests. </p>
  
  <p>I know, that I can delete the folder, but isn't there another way?</p>
  
  <pre><code>../.eclipse/org.eclipse.equinox.security
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Thanks to Kris I solved the problem. </p>
  
  <pre><code>    //part 1
      try {
          AuthPlugin.getDefault().stop(null);
      } catch (final Exception e) {
          e.printStackTrace();
      }
      //part 2
      final ISecurePreferences rootNode = SecurePreferencesFactory.getDefault()
              .node(ROOT_NODE_NAME);
      final String[] names = rootNode.childrenNames().clone();
      for (int i = 0; i &lt; names.length; i++) {
          rootNode.node(names[i]).removeNode();
      }
  </code></pre>
  
  <p>The problem is solved in part 2. I want to also show a way how to stop the authentication for the secure storage, because it is very annoying, by testing with SWTBot.</p>