01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin;
05:
06: import java.util.prefs.Preferences;
07:
08: public class PrefStomper {
09: public static void main(String[] args) throws Exception {
10: Preferences prefs = Preferences.userRoot();
11: String[] children = prefs.childrenNames();
12:
13: for (int i = 0; i < children.length; i++) {
14: System.out.println("Removing " + children[i]);
15: prefs.node(children[i]).removeNode();
16: }
17:
18: prefs.flush();
19: }
20: }
|