Deleting a group by using XML

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.

Example of a request that calls the DeleteGroup procedure

<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>

Input for DeleteGroup

The following input is valid for this request:

Typical response for DeleteGroup

The response to this procedure does not contain significant data.

Important