Deleting Multiple MPMOperationToPartLinks
To delete existing single or multiple MPMOperationToPartLink, you must first check out the Operation object.
You can delete the MPMOperationToPartLink objects by specifying the link OIDs in the request body.
* 
To delete an MPMOperationToPartLink, you must specify only the latest iteration of a revision of an Operation object.
This example shows you how to delete two MPMOperationToPartLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations(‘OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:232603’)/PTC.MfgProcMgmt.DeleteMPMOperationToPartLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToPartLink:232854"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToPartLink:232848"
}
]
}
Example: Deleting an MPMOperationToPartLink in Context of Change
This example shows you how to delete an MPMOperationToPartLink object in the context of Change by specifying the Change OID in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations(‘OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:232603’)/PTC.MfgProcMgmt.DeleteMPMOperationToPartLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToPartLink:232847"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:1858584"
}
The request deletes the link and adds the modified Operation object as a Resultant object to the specified Change object.