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
Syntax This is the basic syntax given by Microsoft MSDN.
- New-SPEnterpriseSearchTopology -SearchApplication <SearchServiceApplicationPipeBind>
- [-AssignmentCollection <SPAssignmentCollection>]
- [-Clone <SwitchParameter>]
- [-Confirm [<SwitchParameter>]]
- [-SearchTopology <SearchTopologyPipeBind>]
- [-WhatIf [<SwitchParameter>]]
Example
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
- New-SPEnterpriseSearchTopology -SearchApplication $SearchServiceApplication