Home > SharePoint > Deleting the search service application

Deleting the search service application

The search crawl db got corrupt in my development environment.  After trying to remove the crawl db and component through the UI and being unsuccessful, I decided to just go ahead and blow away the search service app and recreate. 

So I go to the Service Apps page, select the search service, and click delete.  Twenty minutes later, the service is still being deleted.  Not.  Scrap that and head for PowerShell.

image

Twenty minutes later, still waiting.

Over to the old man stsadm.exe

image

 

The SharePoint PowerShell cmdlets are great and all, but sometimes they just don’t work.

Note: To get the id of the service application, you can do one of the following:

From the UI

Navigate to the service applications page.  Mouse-over the search application link, and observe the id in the status bar.

From Powershell

Get-SPServiceApplication |?{$_.name -eq "Search Service Application"}

image

About these ads
Categories: SharePoint Tags:
  1. Ega
    August 31, 2010 at 10:45 pm

    Hi Donal,

    I have the same problem with Search service Application, i can’t delete the service and unable to modify the topology too. i’m trying to do it with stsadm like you did, but i don’t know how to get the ID. Could you please explain it in more details for deleting the search service application?

    Thank you

    • September 1, 2010 at 11:12 am

      Good point. Updated blog to include how to get service application id!

  2. Steve
    October 20, 2010 at 11:53 am

    Thanks for this post. It just saved my but.

  3. Vishwas
    May 12, 2011 at 10:44 am

    Hi Donal,

    Thanks a lot. This saved me a lot of time. I was able to use the stsadm command and delete the service application.

    I have still errors showing on my 2010 environment under services as “Error stopping”. How do i set it back to normal?

    Thanks
    Vishwas

  4. Leandro
    May 19, 2011 at 12:53 pm

    You save my life! thanks a lot! Cheers from Argentina!

  5. Wicus
    May 27, 2011 at 5:55 am

    Thanks for the excellent Blog.. Saved me from getting rid of a irritating Search Service App which just did not want to die!

  6. Jonnygadfly
    June 17, 2011 at 12:09 pm

    Fantasic Post! Saved me a great deal of pain caused by a troublesome Search Service.

  7. July 13, 2011 at 5:23 pm

    Thanks, got to love STSADM! Powershell has it pros, and its place, and is a good compliment to STSADM. But I don’t think it is ready to replace STSADM.

    You saved my butt! Thanks.

  8. July 23, 2011 at 10:51 am

    So true man! wow.. not all information and be called reliable.. but yours is exacty how you described.. good old stsadm.exe. thanks.

  9. Brian Smith
    August 5, 2011 at 11:32 am

    Awesome! I beat myself up for hours yesterday trying to accomplish this.

  10. ericschrader
    August 30, 2011 at 2:17 pm

    Fixed my issue. Thank you very much. I was able to delete my searchservice applications and pools
    .

  11. Dave
    September 17, 2011 at 7:01 am

    Yepp. great and clear explaination. made me smile, it was so simple.. cheers.

  12. Andrew Childs
    September 22, 2011 at 9:38 pm

    Thank you! I spent all day with this! You made my month!

  13. Dhiya
    November 11, 2011 at 7:35 am

    Thanks a ton Donal. This post helps me a lot to fix the issue ;)

  14. November 11, 2011 at 5:08 pm

    Donal
    thanks for the solution.
    Once we delete the service application, How can we get rid of the databases associated to that service application which was deleted?

  15. parthsp
    January 19, 2012 at 4:04 pm

    Thanks a lot!!

  16. Srikanth
    February 14, 2012 at 6:21 am

    Thanks for the Solution………….

  1. August 18, 2011 at 9:03 am
  2. January 17, 2012 at 3:50 pm
  3. February 28, 2013 at 5:30 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

Follow

Get every new post delivered to your Inbox.

Join 38 other followers

%d bloggers like this: