New-SPEnterpriseSearchTopology Using PowerShell In SharePoint 2013

Steps
  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.
Code

Syntax This is the basic syntax given by Microsoft MSDN.
  1. New-SPEnterpriseSearchTopology -SearchApplication <SearchServiceApplicationPipeBind>   
  2. [-AssignmentCollection <SPAssignmentCollection>]  
  3.  [-Clone <SwitchParameter>]   
  4.  [-Confirm [<SwitchParameter>]]   
  5.  [-SearchTopology <SearchTopologyPipeBind>]   
  6.  [-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
  1. $SearchServiceApplication = Get-SPEnterpriseSearchServiceApplication  
  2.  New-SPEnterpriseSearchTopology -SearchApplication $SearchServiceApplication