On 1 Feb 2008, at 20:22, Brian Gaber wrote:
This is probably a trivial question. How does one delete an entire branch?
Microsoft define a control (1.2.840.113556.1.4.805) which deletes a subtree, which your server *may* support.
Otherwise, do a one-level search, then a one-level search on each of those results, delete any that had no children, and repeat searching on the ones remaining. Don't forget to deal with size limits, eg by repeating searches or using paged results...
Cheers, Chris