Deleting Multiple MPMOperationToConsumableLinks
To delete existing single or multiple MPMOperationToConsumableLinks, you must first check out the Operation object.
You can delete the MPMOperationToConsumableLinks by specifying the link OIDs in the request body.
* 
To delete an MPMOperationToConsumableLink, you must specify only the latest iteration of a revision of an Operation object.
This example shows you how to delete two MPMOperationToConsumableLink 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:198168')/PTC.MfgProcMgmt.DeleteOperationToConsumableLink
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.MPMOperationToConsumableLink:198251"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToConsumableLink:198278"
}
]
}
Example: Deleting an MPMOperationToConsumableLink in Context of Change
This example shows you how to delete an MPMOperationToConsumableLink 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:198168')/PTC.MfgProcMgmt.DeleteOperationToConsumableLink
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.MPMOperationToConsumableLink:198253"
}
],
"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.