# Introduction `DeleteMember` is one of the SOAP actions the [Contact Sharing Service](../sharingservice.md) provides. Deletes a user from the Allow List (AL), Block List (BL), or the Pending List (PL). # Client/Request The template used in this action is described on the [Address Book Service](../abservice.md) main page. ## DeleteMember This element has only one attribute: * `xmlns:` Is always set to `http://www.msn.com/webservices/AddressBook`. ### serviceHandle This element contains three children: * ``: This is always set to `0`. * ``: The type of this member: * `Messenger`: This is a Messenger contact. * `Profile`: This is your profile. * ``: If `` is `Profile`, this should be `MyProfile`, otherwise leave empty but do not convert to an empty element. ### memberships This element only contains `` elements. #### Membership This element contains two children: * ``: The type of list: * `Allow`: The Allow List (AL). * `Block`: The Block List (BL). * `Pending`: The Pending List (RL). * `ProfileExpression`: Your profile. * ``: Explained below. ##### Members This element only contains `` elements. ###### Member This element has two attributes: * `xsi:type`: The type of this ``: * `PassportMember` * `EmailMember` * `PhoneMember` * `RoleMember`: Only valid for `ProfileExpression`. * `xmlns:xsi`: This is always set to `http://www.w3.org/2001/XMLSchema-instance`. This element contains three children: * ``: The type of this ``: * `Passport` * `Email` * `Phone` * ``: The ID of the membership you would like to delete. * ``: This is usually only set to `Accepted`, but `Pending` is a valid value. * ``: Should this member be deleted? (Only set to `true` in `UpdateMember`?) This element may instead contain one of the following mutually exclusive children instead of ``: 1. ``: The user handle associated with this membership. 2. ``: The e-mail address associated with this membership. 3. ``: The phone number associated with this membership. This element also contains the following children IF the role is set to `ProfileExpression`: * ``: Always `Allow`. * ``: Contains the following: * ``: Always `0`. * ``: Always `Messenger`. * ``: Always empty content, but not an empty element. * ``: Always `0`. * ``: Always `0`. # Server/Response The template used in this action is described on the [Address Book Service](../abservice.md) main page. ## DeleteMemberResponse This empty element has only one attribute: * `xmlns:` Is always set to `http://www.msn.com/webservices/AddressBook`. # Examples ## Client/Request ``` POST /abservice/SharingService.asmx HTTP/1.1 SOAPAction: http://www.msn.com/webservices/AddressBook/DeleteMember Cache-Control: no-cache Content-Type: text/xml; charset=utf-8 Content-Length: 1435 996CDE1E-AA53-4477-B943-2BE802EA6166 false Timer false t=ticket&p=profile 0 Messenger Allow Passport Accepted anotheruser@hotmail.com ``` ## Server/Response ``` HTTP/1.1 200 OK Content-Type: text/xml Content-Length: 771 12.01.1111.0000 12r1;MjAyNC0xMS0xOVQxNzo0ODowOS44MDNa true contacts.example.com ecfaf8c7-e388-4571-8641-b061a0ac4bdc ```