Delete SharePoint 2010 Search Service Application

This post has been in draft since last 2 years and would probably not see the light of the day if it had not been for me having to delete the SharePoint 2010 Search Service Application couple of times recently using this technique…

I have had this “consistent” experience of not being able to delete the Search Service Applicaiton from Central Administration

Remove-SPServiceApplication -id [] should do the trick… but if it doesn’t – our good old STSADM will nail it. Thanks to a forum post I had seen then… STSADM works everytime…

Here is the solution

Get -SPServiceApplication

Grab the Search Service Application id – [for example] 30b15b57-6bec-46b5-990d-541d99bab53b

then use this

Stsadm -o deleteconfigurationobject -id 30b15b57-6bec-46b5-990d-541d99bab53b (Preferred over the next method of PowerShell)

or

Remove-SPServiceApplication -id [id of Search Service Application] -confirm:$false -RemoveData

That’s it!