We have unused Publication targets which needs to be deleted and we thought of using the new 2013 Sp1 feature of decommission the targets. We used the below method


This line executes successfully without any error but the publication target doesn't get deleted. Do we need to perform any other extra steps?

2 Answers 2


The documentation states:

Decommissions (takes out of service) a Publication Target, so it can be deleted afterwards.

I would therefore assume that, yes, you need to delete it afterwards yourself.

Something like:


after calling DecommissionPublicationTarget() should be sufficient.

  • 2
    That's indeed how it was designed to work, we thought that the actual delete decision should come from the "owner" rather than the API, in case you were just trying to clean up
    – Nuno Linhares
    Jul 14, 2014 at 11:38
  • As @Nuno mentioned, by design, but that also makes it useful and a lot more safe. See also my blog post on this tridiondeveloper.com/decommission-a-publication-target and the sample code of how it could be used in a UI extension code.google.com/p/sdl-tridion-world/source/browse/… (note I'm also not deleting the target in my extension, but that could be added by changing a single line of code as David explains). Jul 14, 2014 at 11:53

The alternative is to use PowerShell and run:

Clear-TcmPublicationTarget tcm:x-x-x

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.