locked
how delete entries under one ou? RRS feed

  • Question

  • User-737517480 posted
    I got a ou named "ou=MailGroup,dc=pcihl,dc=com"
    How can I:
    1. delete all  entries  under this ou?
    2. within each entry, it get one multiple  entry attributes "Properties("mgrpRFC822MailMember")".  How can I delete all these attribute entries at once?
    thx
    Thursday, May 25, 2006 11:59 PM

All replies

  • User1354132231 posted
    If it is easy enough, I would just use DirectoryEntry.DeleteTree on the OU and recreate it later if necessary.  Otherwise, you need to loop through all the Children recursively and call Remove.
    Friday, May 26, 2006 9:31 AM