Deleting a Directory Object

The following code example deletes the object Jeff Smith from the LDAP directory.

<se:Envelope xmlns:se="">
   <se:Body xmlns="urn:oasis:names:tc:DSML:2:0:core">
         <delRequest dn="cn=Jeff Smith,ou=DSMLTesting,dc=fabrikam,dc=com"/>

The se:Envelope and se:Body SOAP elements enclose the DSML payload. The first element of the DSML payload, batchRequest, is the mandatory top-level element for all DSML V2 requests. The delRequest element deletes the object Jeff Smith from the DSMLTesting organizational unit in the directory.

For more information, see Transmitting and Receiving SOAP-DSML Messages.