Partager via


Remove a Mailbox

 

Applies To: Windows Server 2012 Essentials

Deletes a mailbox.

URI Template

POST services/builtin/MailboxManagement.svc/mailbox/delete?username={username}

{username}
The name of a user.

Sample Request

POST https://www.contoso.com/services/builtin/MailboxManagement.svc/mailbox/delete?username=user1 HTTP/1.1  
Content-Type: application/xml  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  

Sample Response

HTTP/1.1 200 OK  

Error Codes

Error Code Error Message
400 One or more parameters are not valid.
404 The path does not exist.
500 An internal server error occurred.

See Also

Web Service Methods