3.1.4.11 DeleteContentType

The DeleteContentType operation<48> is used to remove the association between the specified list and the specified content type.

 <wsdl:operation name="DeleteContentType">
     <wsdl:input message="DeleteContentTypeSoapIn" />
     <wsdl:output message="DeleteContentTypeSoapOut" />
 </wsdl:operation>

The protocol client sends a DeleteContentTypeSoapIn request message (section 3.1.4.11.1.1) and the protocol server responds with a DeleteContentTypeSoapOut response message (section 3.1.4.11.1.2), as follows:

  1. If the specified listName is a valid GUID and corresponds to the identification of a list on the site, use that list.

  2. If the specified listName is not a valid GUID or does not correspond to the identification of a list on the site, check if the listName corresponds to the list title of a list on the site and if so, use that list.

  3. If the specified listName does not correspond to a list from either of these checks, the protocol server SHOULD<49> return a SOAP fault with error code 0x82000006. This indicates that the list does not exist or might have been deleted by another user.

  4. If the content type cannot be found on the list, the protocol server MUST return a SOAP fault. There is no error code for this fault.

  5. If there are no other errors, the content type is removed from the list.