Home > SharePoint 2010, SharePoint Administration > Unable to Remove Search Service Application in SharePoint 2010

Unable to Remove Search Service Application in SharePoint 2010

Recently the Search Service Application in my SharePoint 2010 farm became corrupt.  I was unable to do crawls or set content sources.  Everything within the Search Service Application was erroring out.  So since this was just a Search Service Application there is no harm in just blowing away this Service App, creating a new database and just reinializing a full crawl once its reconfigured.  However, when attempting to remove the Search Service Application within Central Administration it was erroring out, SharePoint was telling me it is unable to remove the Search Service Application for some odd reason.  Strange!

So I turned to PowerShell, if all fails this always comes to the rescue, correct?  Wrong! Even after attempting to remove the Search Service Application using PowerShell cmdlt

Remove-SPEnterpriseSearchServiceApplication

I was presented with a 30 min wait with no results.  I had to cntrl-c to break out of the PowerShell cmdlt.

So what now?  Can’t remove from Cental Administration and can’t remove using PowerShell.  How are we going to remove this service app?

Welcome back STSADM.  I was able to succesfully remove the service application by using our old SharePoint 2007 friend STSADM.

First I grab the Search Service Application GUID ID.

1.  Log into the Central Administration Server
2.  Open up SharePoint 2010 Management Shell (PowerShell)
3.  Type: Get-SPEnterpriseSearchServiceApplication
4.  This will list all properities of the Search Service Application.
5.  Right click and select “Mark”, highlight the Search Service ID and right click again to paste into the clipboard.

Second we are going to remove the Search Service Application using STSADM

1.  While still logged into the Central Administration Server open up a Command Prompt using Admin Rights
2.  Change directory to:  c:\Program Files\common files\Microsoft Shared\Webserver Extensions\14\bin
3.  Now type the STSADM command

stsadm -o deleteconfigurationobject -id [Search Service Application GUID ID].  Just right click in the window and paste the GUID ID.

4.  Hit Enter!

Thats it, STSADM will do its thing.  Now go back to Central Administration -> Application Management -> Manage Service Applications to double check and make sure that the Search Service Application was indeed removed for Service Applications.

You should now be good to go to recreate your Search Service Application.

Advertisements
  1. B Scheurman
    April 9, 2013 at 3:43 pm

    Thank you … After all my searching .. this actually helped me..

    if all else fails.. go old school

  2. Mary
    April 11, 2013 at 4:10 am

    2. Change directory to: c:\Program Files\common files\Microsoft Shared\Webserver Extensions\14\bin
    3. Now type the STSADM command

    stsadm -o deleteconfigurationobject -id [Search Service Application GUID ID]. Just right click in the window and paste the GUID ID.

    These steps helped a lot

  3. October 26, 2014 at 6:48 pm

    This is REALLY dangerous because it only removes the SSA object from the Config DB, but it DOES NOT remove any of the child objects such as the search databases (e.g. Get-SPDatabase will still show these DBs), it will not delete the Search Administration Web Service Application, it will not remove the index paths where the Query Components were running, it will not remove the SSA’s Proxy object, and it will not remove the SearchAdmin.svc and SearchService.svc WCF EndPoint sites… This will become very apparent if you try to create a new SSA (particularly with the same name as the one you deleted).

    If the normal Remove-SPEnterpriseSearchServiceApplication doesn’t work, then you have some other underlying problem (which could very likely come back into play even if you create a new SSA).

  1. July 18, 2012 at 4:06 pm
  2. April 9, 2014 at 11:11 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: