public void delete(SSOToken token,String dn) throws SMSException, SSOException {
  for (  String entry : subEntries(token,dn,"*",0,false,false)) {
    debug.message("SMSLdapObject: deleting sub-entry: {}",entry);
    delete(token,getNamingAttribute() + "=" + entry+ ","+ dn);
  }
  for (  String subOrg : searchSubOrgNames(token,dn,"*",0,false,false,false)) {
    debug.message("SMSLdapObject: deleting suborganization: {}",subOrg);
    delete(token,subOrg);
  }
  delete(token.getPrincipal(),dn);
  objectChanged(dn,DELETE);
}

public void delete ( SSOToken token , String dn ) throws SMSException , SSOException { for ( String entry : subEntries ( token , dn , "*" , 0 , false , false ) ) { debug . message ( "SMSLdapObject: deleting sub-entry: {}" , entry ) ; delete ( token , getNamingAttribute ( ) + "=" + entry + "," + dn ) ; } for ( String subOrg : searchSubOrgNames ( token , dn , "*" , 0 , false , false , false ) ) { debug . message ( "SMSLdapObject: deleting suborganization: {}" , subOrg ) ; delete ( token , subOrg ) ; } delete ( token . getPrincipal ( ) , dn ) ; objectChanged ( dn , DELETE ) ; }
delete the entry in the directory . this will delete sub - entries also !
