Hosted Email 2007::DeleteMailbox

This procedure removes the mailbox of a user and removes Exchange attributes from Active Directory.

Arguments

Input Arguments Required Description

<preferredDomainController>

Yes

The domain controller to use for Active Directory actions.

<user>

Yes

This parameter specifies the Lightweight Directory Access Protocol (LDAP) path of the user object for which the mailbox will be deleted.

Remarks

Security

The caller must be at least a member of role: UserCreators.

Schema Definition

Input

<executeData>  
<preferredDomainController>1..1 </preferredDomainController> 
<user>1..1 </user> 
</executeData> 

Output

<executeData>1..1 </executeData>

Sample Code

Example XML Request

<request> 
  <data> 
    <!--The domain controller to use for Active Directory actions.--> 
    <preferredDomainController>AD01.Fabrikam.Com</preferredDomainController> 
    <!--Specifies the LDAP path of the user object to delete the mailbox from.--> 
    <user>LDAP://CN=johnc@AlpineSkiHouse.com,OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</user> 
  </data> 
  <procedure> 
    <execute namespace="Hosted Email 2007" procedure="DeleteMailbox" impersonate="1"> 
      <before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" /> 
      <before source="data" sourcePath="user" destination="executeData" mode="move" /> 
      <after source="executeData" destination="data" mode="merge" /> 
    </execute> 
  </procedure> 
</request>

Example XML Response

<response>  
        <data /> 
</response> 

Applies To

Hosted Email 2007 Namespace for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

Hosted Email 2007::CreateMailbox
Hosted Email 2007::DisableMailbox
Hosted Email 2007::EnableMailbox
Hosted Email 2007::GetMailbox
Hosted Email 2007::ModifyMailbox
Hosted Email 2007::MoveMailbox