Forum Discussion
Cannot Delete Search Service Application on SharePoint Server
1. To check dependencies: Open the SharePoint Admin Center.
Navigate to Application Management > Manage Service Applications.
Check if the search service application is referenced by other services or applications.
2. Remove using PowerShell: Open SharePoint Management Shell (with administrator privileges).
Run the following command to get the ID of the Search Service application:
powershell
Get-SPServiceApplication
Run the following command to remove the Search Service application:
powershell
Remove-SPServiceApplication -Identity <ServiceApplicationID
3. Clear isolated objects: Open the SharePoint Management Shell (with administrator privileges).
Run the following command to clear isolated objects: powershell
Get-SPServiceApplication | Where-Object {$_.Name -eq “<SearchServiceApplicationName>”} | Remove-SPServiceApplication
4. Restart the SharePoint service:
Open the Services administrative tool.
Restart the following services:
SharePoint Administration
SharePoint Timer Service
SharePoint Search Host Controller