0

I'm working on SharePoint 2013, configuring the Search Service. I created a Search Service Application through Powershell with some wrong setting and I tried to delete everything to start over again:

$sa = Get-SPEnterpriseSearchServiceApplication
$sa.Delete()

But! The services:

  • SharePoint Server Search
  • Search Query and Site Settings Service
  • Search Host Controller Service

are still running and the four databases associated with the app are still there. The commands Powershell to remove the dbs (e.g. Remove-SPEnterpriseSearchCrawlDatabase) cannot run because the application is no longer there.

Can I remove the dbs from SQL Management Studio and Stop the services from SP? Or is there a proper way to do that?

Thank you!!

1 Answer 1

0

The search services are farm services so should remain. To remove the associated databases you could have tried this
Remove-SPServiceApplication $spapp -RemoveData

1
  • Let's say that I should have done like that.. but when I wrote the post above I couldn't Get $spapp anymore because it was deleted. I removed everything manually in the end, hope it won't case much problems.
    – Mafalda89
    Commented Nov 5, 2014 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.