While Implementing Topology we faced issues and need to clean up the Topology which created earlier.
I came across some PowerShell commands which we need to execute for Removing topology.
Thought of sharing the commands and I found Curlette already shared those commands and with nice explanation.
Removing Topology Manager with Web 8
The above article shows manually how to identify Environment IDs and delete them.
Sharing Automated Script here.
To execute the below script we need Tridion.TopologyManager.Automation Powershell Module
$RemoveTopologyScriptBlock = {
$CdTopology = Get-TtmCdTopology
Remove-TtmCdTopology -Id $CdTopology.Id
}
$RemoveContentDeliveryScriptBlock = {
$CdEnvironments = Get-TtmCdEnvironment
foreach($CdEnvironment in $CdEnvironments)
{
Remove-TtmCdEnvironment -Id $CdEnvironment.Id
}
}
$RemoveTopologyType = {
$CdTopologyType = Get-TtmCdTopologyType
Remove-TtmCdTopologyType -Id $CdTopologyType.Id
}
$RemoveContentManagementScriptBlock = {
$CmEnvironment = Get-TtmCmEnvironment
Remove-TtmCmEnvironment -Id $CmEnvironment.Id
}
& RemoveTopologyScriptBlock
& RemoveContentDeliveryScriptBlock
& RemoveTopologyType
& RemoveContentManagementScriptBlock
I came across some PowerShell commands which we need to execute for Removing topology.
Thought of sharing the commands and I found Curlette already shared those commands and with nice explanation.
Removing Topology Manager with Web 8
The above article shows manually how to identify Environment IDs and delete them.
Sharing Automated Script here.
To execute the below script we need Tridion.TopologyManager.Automation Powershell Module
$RemoveTopologyScriptBlock = {
$CdTopology = Get-TtmCdTopology
Remove-TtmCdTopology -Id $CdTopology.Id
}
$RemoveContentDeliveryScriptBlock = {
$CdEnvironments = Get-TtmCdEnvironment
foreach($CdEnvironment in $CdEnvironments)
{
Remove-TtmCdEnvironment -Id $CdEnvironment.Id
}
}
$RemoveTopologyType = {
$CdTopologyType = Get-TtmCdTopologyType
Remove-TtmCdTopologyType -Id $CdTopologyType.Id
}
$RemoveContentManagementScriptBlock = {
$CmEnvironment = Get-TtmCmEnvironment
Remove-TtmCmEnvironment -Id $CmEnvironment.Id
}
& RemoveTopologyScriptBlock
& RemoveContentDeliveryScriptBlock
& RemoveTopologyType
& RemoveContentManagementScriptBlock
Nice post.
ReplyDeleteUseful Post
ReplyDeleteVery useful post. Thanks Prasanna
ReplyDelete