Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Product Management Domain > Deleting Associations Between Parts and CAD Documents
  
Deleting Associations Between Parts and CAD Documents
You can delete a single or multiple associations between parts and CAD documents.
* 
When the Calculated association type is specified along with other association types in the request body, the request skips the deletion of the calculated association.
When only the Calculated association type is specified in the request body, the request skips the deletion of the calculated association. Because there is no association to delete, the request returns the 204 status code.
The deletion of a calculated association is skipped even though you do not have access to the part or CAD document.
This example demonstrates how to delete an association between a part and a CAD document. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/DeleteAssociations HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"PartDocAssociations": [
{
"AssociationType": {
"Value": "CONTENT"
},
"RelatedPart@odata.bind": "Parts('OR:wt.part.WTPart:11908807')",
"RelatedCADDoc@odata.bind": "CADDocuments('OR:wt.epm.EPMDocument:11908719')"
}
]
}