One of my customers called me saying that they had some search topologies in their farm, so they wanted to remove the inactive topologies, but how we can do this? You guess it right, with PowerShell 🙂
So if you execute the following PS, it will return the inactive topologies in the farm
Get-SPEnterpriseSearchServiceApplication | Get-SPEnterpriseSearchTopology |? {$_.State -eq "Inactive"} |% {Remove-SPEnterpriseSearchTopology -Identity $_ -Confirm:$false}
If you are sure that you want to remove the inactive topologies, change the $false to $true and execute the PowerShell.
Till next time!!
One thought on “SharePoint 2013 Search – Removing Inactive Search Topologies with PowerShell”