Deleting Routing Plans
You can delete multiple routing plans associated to a process plan by specifying one or more routing plan OIDs in the request body.
You can specify only the latest versions of routine plans in the request. Subsequently, the request deletes all the iterations of the latest revision of each specified routing plan.
|
The /DeleteRoutingPlans request removes the following:
• The links between each routing plan and process plan, part, and plant.
• The links between each routing plan and localized operations including standard procedure and standard operation.
• The localized operations and sequences if created in context of any routing plan.
• The links with the associated reference and described by documents if any.
• The links with the associated plant and work center or line if any.
• The links with the associated parts.
• The links with the associated effectivity.
• The links with the associated process plan and localized operations.
|
You can also delete a specific routing plan by specifying the routing plan OID in the request URI.
You must have Delete permissions to delete routing plans.
|
You cannot delete a checked out routing plan.
|
Example: Deleting Multiple Routing Plans
The following example shows you how to delete two routing plans by specifying the OIDs of the latest versions of two routing plans, respectively, in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteRoutingPlans
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"RoutingPlans": [
{
"ID": "OR:wt.mpm.routing.WCRoutingPlan:197164"
},
{
"ID": "OR:wt.mpm.routing.WCRoutingPlan:197168"
}
]
}
Example: Deleting a Specific Routing Plan
The following example shows you how to delete a specific routing plan associated to a process plan by specifying the routing plan OID in the request URI. Use the following DELETE URI.
URI
DELETE /Windchill/servlet/odata/MfgProcMgmt/RoutingPlans('OR:wt.mpm.routing.WCRoutingPlan:275751')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>