Use the DeleteGroup procedure of the Managed Active Directory namespace to delete a group in Active Directory.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
<request>
<procedure>
<execute namespace="Managed Active Directory" procedure="DeleteGroup">
<executeData>
<group>LDAP://CN=myGroup1,CN=Users,DC=contoso,DC=com</group>
<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
</executeData>
</execute>
</procedure>
</request>
The following input is valid for this request:
Use the <group> element to specify the Lightweight Directory Access Protocol (LDAP) path of the group that you want to delete.
<group>LDAP://LDAP path of the group</group>
By using the <preferredDomainController> element, you can specify the domain controller that you want to use for this request. Using a single preferred domain controller eliminates replication delays that arise between multiple controllers.
<preferredDomainController>your domain controller</preferredDomainController>
The response to this procedure does not contain significant data.
Important