SharePoint (2003 thru Online): February 2017

Friday, February 24, 2017

Delete a service application (SharePoint 2010)

Removing the SharePoint 2010 Service application can become quite a pain when the removal hasn’t work out the way it should have or when it is corrupted.

In my case I am trying to remove the Corrupted Search Service Application.

1. I tried removing thru Central Admin. It took time and got timed out. No Luck.
2. Tried to remove using Powershell script, no luck.

$spapp = Get-SPServiceApplication -Name "Search Service Application"

Remove-SPServiceApplication $spapp -RemoveData

3. Finally tried the STSADM command, Yeah...it worked!!!



STSADM.EXE -o deleteconfigurationobject -id "b90b7108-b808-4186-8d86-1ed1da72f3d0"


NOTE: Please Open the Powershell with "Run as Administrator"