I have migrated CMS from 2013sp1 to Web 8.5, I tried running
Clear-TcmPublicationTarget but, still the old targets are showing when I click any items to publish..
Is there a way I can delete the old items??
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It only takes a minute to sign up.Sign up to join this community
Clear-TcmPublicationTarget doesn't delete the target - it "decommissions the specified Publication Target". Meaning the system forgets that anything was ever published to that target.
Step two is to actually delete the Publication Target and its associated Target Types, which you can do using the API or the UI.
If you wish to do it through the UI, you'll need to enable legacy publishing management through a configuration file as documented on the following page: Showing the Publishing Management node
The relevant steps:
Using the TOM.NET API or the Core Service API, you can decommission a Publication Target; that is, you can delete the Publication Target without explicitly unpublishing its contents.
Before you begin
Decommissioning a Publication Target requires System Administrator rights.
About this task Decommissioning a Publication Target is useful if you are working on your Content Delivery infrastructure and are simply removing your Publication Target's server(s). Actually unpublishing all items is potentially time-consuming and unnecessary if the server or servers are removed anyway.
Procedure Do one of the following:
In the Core Service, call the DecommissionPublicationTarget method.
Refer to the respective API reference documentation for more details on these methods. Effectively, these methods set the publish status of all items on the Publication Target to "unpublished" for that Publication Target.
Delete the Publication Target. If any publish action to that Publication Target occurs before you delete it, you need to decommission the Publication Target again.