Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Manufacturing Process Management Domain > Deleting Multiple Process Plans
  
Deleting Multiple Process Plans
To delete existing single or multiple Process Plans, you must specify only the latest version of each Process Plan object.
* 
You cannot delete a checked-out Process Plan object.
When you delete multiple Process Plan objects, only the latest version of each of the Process Plan objects is deleted.
Example: Deleting Multiple Process Plans
This example shows you how to delete three Process Plan objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteProcessPlans
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ProcessPlans": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:328285"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:328338"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:328447"
}
]
}
Example: Deleting a Process Plan
This example shows you how to delete a Process Plan object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteProcessPlans
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ProcessPlans": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan%3A327832"
}
]
}