Share via


Hosted Exchange::DeleteDistributionList

This procedure deletes a distribution list.

Arguments

Input argument Required Description

<path>

Yes

The Lightweight Directory Access Protocol (LDAP) path of distribution group.

<preferredDomainController>

Yes

Output Argument

True-If the method succeeds.

Remarks

Provisioning Steps

  1. Preferred DC Active Directory Provider::Delete Object - Delete the Active Directory object

Security

  • Impersonate caller.

Sample Code

Example XML Request

<request xmlns:xsl="https://www.w3.org/1999/XSL/Transform"> 
        <procedure xmlns:xsl='https://www.w3.org/1999/XSL/Transform'>               
                <execute namespace="Hosted Exchange" procedure="DeleteDistributionList"  impersonate="1">             
                         <executeData>              
                                <preferredDomainController>AD01.fabrikam.com</preferredDomainController>                 
                                <path>LDAP://cn=DistributionGroup1,OU=alpineskihouse,OU=WH,OU=Hosting,DC=fabrikam,DC=Com</path>              
                                <userPrincipalName>admin@alpineskihouse.com</userPrincipalName>              
                        </executeData>              
                        <after source="executeData" destination="data" mode="merge"/>             
                </execute>           
        </procedure>  
</request>

Example XML Response

No example XML response.

Applies To

Hosted Exchange Namespace API for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Hosted Exchange::CreateDistributionList