Deletes an organizational unit named HR from the hypothetical domain fabrikam.com.
Set objDomain = GetObject("LDAP://dc=fabrikam,dc=com")objDomain.Delete "organizationalUnit", "ou=hr"
This is a VB Script, this can be used by saving the file in .vbs file