public static void deleteValue ( String branch , String entry ) throws IOException , InterruptedException { if ( entry == null ) { String [ ] cmd = new String [ ] { "reg" , "delete" , cleanBrunch ( branch ) , "/f" } ; executeQuery ( cmd ) ; // executeQuery("reg delete \""+List.trim(branch,"\\")+"\" /f"); } else { String [ ] cmd = new String [ ] { "reg" , "delete" , cleanBrunch ( branch ) , "/v" , entry , "/f" } ; executeQuery ( cmd ) ; // executeQuery("reg delete \""+List.trim(branch,"\\")+"\" /v "+entry+" /f"); } }
deletes a value or a key