SharePoint 2013 Search – Removing Inactive Search Topologies with PowerShell

Posted by

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 comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s