Using PowerShell scripts and the Core Service API, you can decommission a Content Delivery environment; that is, you can delete the environment from your publishing infrastructure without explicitly unpublishing its contents. Do not decommission a Content Delivery environment unless you have a pressing reason to do so.
Procedure
- Prohibit all users from publishing to the Content Delivery environment you intend to decommission.
- Remove all publish states related to the environment by calling the Core Service method
RemovePublishStates, which takes a Publication ID and a Target Type ID or Purpose.
- Remove the environment from Topology Manager by running the following PowerShell command:
Clear-TtmCdEnvironment -Id CDENVID
where CDENVID is the identifier of the Content Delivery environment you want to decommission.
- Remove any mapping from Topology Manager to the environment by running the following PowerShell command:
Clear-TtmMapping -Id MAPPINGID
where MAPPINGID is the identifier of the Content Delivery environment you want to decommission.