Share via


Exchange 2007 Provider::DeleteMailbox

This method causes the server to delete an Exchange mailbox.

Arguments

Input Arguments Required Description

<preferredDomainController>

Yes

The domain controller to use for Active Directory actions.

<path>

Yes

This parameter specifies the Lightweight directory access protocol (LDAP) path of the user object for which the mailbox will be created.

Remarks

Rollback Method: Not implemented

The Global Address List pointer is retrieved from the owning organization's otherWellKnownObjects attribute and removed from the user's showInAddressBook.

The msExchUseOAB attribute is cleared.

Security

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

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.--> 
    <path>LDAP://CN=Johnc@AlpineSkiHouse.com,OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</path> 
  </data> 
  <procedure> 
    <execute namespace="Exchange 2007 Provider" procedure="DeleteMailbox" impersonate="1"> 
      <before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" /> 
      <before source="data" sourcePath="path" destination="executeData" mode="move" /> 
      <after source="executeData" destination="data" mode="merge" /> 
    </execute> 
  </procedure> 
</request> 

Applies To

Exchange 2007 Provider 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