Hi folks!
Last day I was doing an installation I had a weird problem, I configured the search application, and then I executed a wonderful PS to configure it again trough several servers, but then when I accessed to AC, I realized that it was showing 2 index components inside the same server. So what happened? I don’t know, but I want to leave the server with only 1 component, although the other one it is not being used.
So, first of all I executed some PS codes to confirm my guess:

So, as you can see I’m having to Index components in different locations, one stored in C:, while the other one is stored in E. I want to eliminate the Component1, because it was created in C and I want all my Search components running in other location than the OS drive.
If you need to check the previous step, execute the following:
$ssa = Get-SPEnterpriseSearchServiceApplication “SKM_PRE_Search_App”
$current=Get-SPEnterpriseSearchTopology -SearchApplication $ssa
Get-SPEnterpriseSearchComponent -SearchTopology $current | ? {$_.Name -eq “IndexComponent1”}
Ok, once we arrived at this point, we want to eliminate the IndexComponent1, how it’s not possible to do changes in an active topology, we need to clone the Search Topology, do the changes that we want to promote, active the new topology and remove the old one. Sounds a bit strange, but it is more easy to understand with some code:
$current=Get-SPEnterpriseSearchTopology -SearchApplication $ssa
$clone=New-SPEnterpriseSearchTopology -Clone -SearchApplication $ssa -SearchTopology $current
$comp=Get-SPEnterpriseSearchComponent -SearchTopology $clone | ? {$_.Name -eq “IndexComponent1”}
Remove-SPEnterpriseSearchComponent -Identity $comp -SearchTopology $clone
Set-SPEnterpriseSearchTopology -Identity $clone
Remove-SPEnterpriseSearchTopology -Identity $current
Once we executed the steps before, we are done, but not in my case, because I received a weird error removing the topologies, so I need to check some things as the next image shows:

As it possible to be seen, the image shows some inactive topologies, so with a PS that I posted here I was able to delete the inactive topologies. And finally as it can be seen, my component count from the Search Service, only shows 6 components instead of 7.
Work done!