Exchange Provider::DeleteMailbox

The DeleteMailbox method deletes a user's mailbox. This method also performs the following tasks related to address lists:

  • Finds the responsible organization by looking at the user's otherWellKnownGuids attribute. It then looks at the organization's otherWellKnownGuids to find the GAL for the organization and removes the organization's GAL from the showInAddressBook attribute of the recipient.

  • Finds the AL for the organization in the manner stated above and then removes the organization's AL from the showInAddressBook of the recipient.

  • Removes the organization from the otherWellKnownObjects attribute of the recipient.

  • Clears the msExchUseOAB attribute of the recipient.

Arguments

Input argument Required Description

Path

Yes

Required parameter; the Lightweight directory access protocol (LDAP) path of the user object.

OrgPath

No

Optional parameter; the path of the hosted organization that contains the AL, GAL, and OAB as well-known-objects. By default, the path is that of the parent OU of the user.

Remarks

Rollback Calls

The DeleteMailbox method provides no transaction rollback calls.

Sample Code

Example XML Request

The following is an example of an XML request for the DeleteMailbox method of the Exchange Provider:

<request> 
    <data/> 
        <procedure> 
            <execute namespace='Exchange Provider' 
             procedure='DeleteMailbox'> 
                <executeData> 
                    <path>LDAP://cn=johnc,OU=litware,OU=consolidatedmessenger, 
                     DC=fabrikam,DC=com </path> 
                </executeData> 
            </execute> 
        </procedure> 
</request> 

Example XML Response

No example XML response.

Applies To

Exchange Provider API for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Exchange Provider::CreateMailbox