3.1.4.3 DeleteContentType

This operation<12> removes a specified content type from the site. This operation is defined as follows:

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

The protocol client sends a DeleteContentTypeSoapIn request message, and the protocol server responds with a DeleteContentTypeSoapOut response message, as follows:

  1. If the contentTypeId element is not a valid content type identifier, the protocol server MUST return a SOAP exception.

  2. If the content type is not found, the protocol server MUST return a SOAP exception.

  3. If the content type is read-only or cannot be deleted for any other reason, the protocol server MUST return a SOAP exception.

  4. If no exceptions are encountered during the processing of the request, the content type with the requested identifier MUST be removed from the list of content types on the site.