Deletes an organizational unit named HR from the domain fabrikam.com.

Visual Basic
Edit|Remove
Set objDomain = GetObject("LDAP://dc=fabrikam,dc=com")

objDomain.Delete "organizationalUnit", "ou=hr"