Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 8 down vote accepted

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.

share|improve this answer
Thanks David.It worked :) – Sam Jul 14 '14 at 11:13
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 '14 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 and the sample code of how it could be used in a UI extension… (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). – Bart Koopman Jul 14 '14 at 11:53

The alternative is to use PowerShell and run:

Clear-TcmPublicationTarget tcm:x-x-x

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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