Use the DeleteUser procedure of the Managed Active Directory namespace to delete a user account.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
<request> <procedure> <execute namespace="Managed Active Directory" procedure="DeleteUser"> <executeData> <user>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com</user> <preferredDomainController>myPrimaryDC.contoso.com </preferredDomainController> </executeData> </execute> </procedure> </request>
The following input is valid for this request:
Use the <user> element to specify the Lightweight Directory Access Protocol (LDAP) path of the user that you want to delete.
<user>LDAP://LDAP path of the user</user>
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.
This information is optional.
<preferredDomainController>your domain controller</preferredDomainController>
The response to this procedure does not contain significant data.