Removing Distribution Targets Associated with Windchill Objects
You can remove existing single or multiple Distribution Targets associated with single or multiple Windchill objects or their subtypes. You can remove all active or inactive Distribution Targets associated with the following Windchill objects or their subtypes: WTPart, Document, EPM Document, Option Set,.Accountability Map, Process Plan, and so on.
* 
Product/Library managers are not permitted to remove Distribution Targets. Only the following users can remove Distribution Targets:
Site/Organization administrators
Members of user groups specified by the preference, ESI > Settings > Enable ability to associate and remove distribution targets
Example: Removing Distribution Targets Associated with a Part
This example shows you how to remove Distribution Targets associated with a part specified in the request body. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/ESI/RemoveDistributionTarget?$expand=DistributionTargets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DistributionTargetAssignables": [
{
"ID": "VR:wt.part.WTPart:110282"
}
],
"DistributionTargets": [
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:198230"
},
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:176038"
}
]
}
Example: Removing Distribution Targets Associated with a Document
This example shows you how to remove Distribution Targets associated with a document specified in the request body. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/ESI/RemoveDistributionTarget?$expand=DistributionTargets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DistributionTargetAssignables": [
{
"ID": "VR:wt.doc.WTDocument:196168"
}
],
"DistributionTargets": [
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:198230"
},
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:176038"
}
]
}
Example: Removing Distribution Targets with an EPM Document
This example shows you how to remove Distribution Targets associated with an EPM document specified in the request body. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/ESI/RemoveDistributionTarget?$expand=DistributionTargets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DistributionTargetAssignables": [
{
"ID": "OR:wt.epm.EPMDocument:196316"
}
],
"DistributionTargets": [
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:198230"
},
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:176038"
}
]
}
Example: Removing Distribution Targets Associated with an Option Set
This example shows you how to remove Distribution Targets associated with an option set specified in the request body. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/ESI/RemoveDistributionTarget?$expand=DistributionTargets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DistributionTargetAssignables": [
{
"ID": "VR:com.ptc.windchill.option.model.OptionSet:200045"
}
],
"DistributionTargets": [
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:198230"
},
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:176038"
}
]
}
Example: Removing Distribution Targets Associated with an Accountability Map Object
This example shows you how to remove Distribution Targets associated with an accountability map specified in the request body. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/ESI/RemoveDistributionTarget?$expand=DistributionTargets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DistributionTargetAssignables": [
{
"ID": "VR:wt.associativity.accountability.AccountabilityMap:198658"
}
],
"DistributionTargets": [
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:198230"
},
{
"ID": "OR:com.ptc.windchill.esi.tgt.ESITarget:176038"
}
]
}