How to remove inactive search topology in SharePoint 2013

After configuring a new search topology I used this Powershell command to to remove inactive search topology in SharePoint 2013:

Get-SPEnterpriseSearchServiceApplication | Get-SPEnterpriseSearchTopology |? {$_.State -eq "Inactive"} |% { Remove-SPEnterpriseSearchTopology -Identity $_ -Confirm:$false};

I hope this saves someone’s time!!

No comments:

Post a Comment