Steps
- Open your SharePoint Management Shell.
- Copy the code given below and paste it there.
- Run the code given below to delete SharePoint search component.
Code
This is the basic syntax given by Microsoft MSDN.
- Remove-SPEnterpriseSearchComponent [-Identity] <SearchComponentPipeBind>
- -SearchTopology <SearchTopologyPipeBind>
- [-AssignmentCollection <SPAssignmentCollection>]
- [-Confirm [<SwitchParameter>]]
- [-SearchApplication <SearchServiceApplicationPipeBind>]
- [-WhatIf [<SwitchParameter>]]
Exmaple
This is the simple code to perform the operations to remove the search component. Identity -Specifies the identity for a search component.
Source code
- $SearchServiceApplication = Get-SPEnterpriseSearchServiceApplication
- $Searchtopology = Get-SPEnterpriseSearchTopology -SearchApplication $ssaSearchServiceApplication -Identity 32da59cb-4b32-4de6-8d8d-065388dd201e
- Remove-SPEnterpriseSearchComponent -SearchTopology $Searchtopology -Identity f1642546-b9ae-4096-834f-080da5fba90e
Thanks for reading my blog.