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