question: 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 ) ; }
target:  Delete the entry in the directory. This will delete sub-entries also!