Set creds = new HashSet();
creds.add(passwdAuth);
setProperties();
Connection conn = getConnection();
conn.setCredentials(creds);
RegistryService rs = conn.getRegistryService();
bqm = rs.getBusinessQueryManager();
blm = rs.getBusinessLifeCycleManager();
Collection keys = findOrganizations("USA%");
BulkResponse response = blm.deleteOrganizations(keys);
Collection exceptions = response.getExceptions();
if (exceptions == null) {
System.out.println("Organization deleted");