Remove-SPEnterpriseSearchComponent Using Powershell In SharePoint 2013

  1. Open your SharePoint Management Shell.
  2. Copy the code given below and paste it there.
  3. Run the code given below to delete SharePoint search component.

This is the basic syntax given by Microsoft MSDN.
  1. Remove-SPEnterpriseSearchComponent [-Identity] <SearchComponentPipeBind>  
  2. -SearchTopology <SearchTopologyPipeBind>  
  3. [-AssignmentCollection <SPAssignmentCollection>]  
  4. [-Confirm [<SwitchParameter>]]  
  5. [-SearchApplication <SearchServiceApplicationPipeBind>]  
  6. [-WhatIf [<SwitchParameter>]]  

This is the simple code to perform the operations to remove the search component. Identity -Specifies the identity for a search component.
Source code
  1. $SearchServiceApplication = Get-SPEnterpriseSearchServiceApplication  
  2.  $Searchtopology = Get-SPEnterpriseSearchTopology -SearchApplication $ssaSearchServiceApplication -Identity 32da59cb-4b32-4de6-8d8d-065388dd201e  
  3.  Remove-SPEnterpriseSearchComponent -SearchTopology $Searchtopology -Identity f1642546-b9ae-4096-834f-080da5fba90e  
Thanks for reading my blog.