directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <ayyagariki...@gmail.com>
Subject Re: Deleting a node and it's children
Date Tue, 02 Feb 2010 15:41:12 GMT


> Is there any existing method that can delete a node and it's children ? 
> Or do I have to iterate and delete them one by one ?
> 
> If I have to iterate, do you have some code sample I could use ? (my 
> node only have objectClass=person)...

take a look at the deleteTree(LdapDN) and deleteRecursive() methods in [1].
Note that this class is part of the new ApacheDS client-api which is under development.

[1] - 
http://svn.apache.org/repos/asf/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java

HTH
Kiran Ayyagari

Mime
View raw message