Delete a service application in SharePoint Server SharePoint 2016: How to configure Search Service Application using …
buy argumentative essay

Delete a service application in SharePoint Server SharePoint 2016: How to configure Search Service Application using …

× Explore…

Community MicroJobs Get Help! Questions Training Shows Today Leaderboard Directory Events Store Publishers Portal Members

Chat Sponsors Podcast Tasks… View Activity Edit Profile Log in More »

× Home Office 365 SharePoint Azure Teams PowerApps Flow PowerBI Project Exchange Skype Forms OneDrive Hybrid SharePoint Intranets Search Security SPFx Workflow Development Migration Community Training… Combined Knowledge IW Mentor Search Explained Voitanos SPFx Training Conferences… MCT Summit 2018 Global Conf 2017 Global Conf 2016 Summit 2016 Global Conf 2015 SP24 SPBIZ More »
All Posts Videos Training Jobs Q&A

Home » SharePoint » How to remove the Search Topology (Removing Existing SSA with PowerShell)

How to remove the Search Topology (Removing Existing SSA with PowerShell)

14 Apr

This is the script we used for the removal process…

Add-PSSnapin Microsoft.SharePoint.PowerShell
#Removing Existing Search Service Applications
$SSAS = Get-SPEnterpriseSearchServiceApplication
ForEach ($SSA in $SSAS)
$SSA
#Stop Search Service Instances
$SSIS = Get-SPEnterpriseSearchServiceInstance
ForEach ($SSI in $SSIS)
$SSI
$Response = Read-Host -Prompt “Would you like to stop the above service? Press Y or N”
IF ($Response -eq “Y”)
Write-Host ‘Stopping’ $SSIS.Service ‘on’ $SSIS.Server
Stop-SPEnterpriseSearchServiceInstance -Identity $SSI
#Stop Search Query and Site Settings Service Instances
$SQSSSIS = Get-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance
ForEach ($SQSSSI in $SQSSSIS)
$SQSSSI
$Response = Read-Host -Prompt “Would you like to stop the above service? Press Y or N”
IF ($Response -eq “Y”)
Write-Host ‘Stopping’ $SQSSsI.Service ‘on’ $SQSsSI.Server
Stop-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance -Identity $SQSsSI
#Check Service Status
Get-SPEnterpriseSearchServiceInstance | FT Server, Status
Get-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance | FT Server, Status

 

(2652)

Collab365 MicroJobs is now live!

  • Find a Microsoft Teams Freelancer
  • Looking for expert help with Office 365?
  • Earn Money in your spare time: Sign up as a Collab365 MicroJobs Freelancer.

2.4/5 (1)

Please rate this

Views: 2.65K  | Categories: SharePoint
About The Author

Tony Di Leonardo –

Previous

ASP.NET Session State implementation in SharePoint

Next

SharePoint SSL (https://) Not Supported – Management Reporter 2012

  • Ivan says:
    December 23, 2016 at 9:13 am

    Hi Tony

    Does the script remove the corresponding database as well?

    Regards

    Ivan

    Log in to Reply
  • Trending

    Step by step installation of Active Directory Domain Services in Windows Server 2012 R2 (Part 2)

    Dharmendra Singh

    Step by step Installation of SharePoint 2013 on Windows Server 2012 R2 part 1

    Dharmendra Singh

    Step by step Installation of SharePoint 2013 on Windows Server 2012 R2 part 3

    Dharmendra Singh

    How to create a Ticket Management System using SharePoint, PowerApps & Flow

    Anil Pal

    How to use SharePoint Designer 2013 with SharePoint 2016 / 2019 / Online

    Dharmendra Singh

    Session expired

    Please log in again. The login page will open in a new window. After logging in you can close it and return to this page.

    >

    Thursday, September 10, 2015


    Delete Search Service Application – SharePoint 2013

    Can’t delete SharePoint search service application from GUI? Here is a solution.

    POWERSHELL

    Run SharePoint Management Shell as Administrator.

    $spapp = Get-SPServiceApplication -Name “Name Search Service Application”
    Remove-SPServiceApplication $spapp -RemoveData

    Or

    Get-SPServiceApplication

    $P = Get-SPServiceApplication -identity PutYourSearchApplicationGuidHere
    Remove-SPServiceApplication $P
    Remove-SPServiceApplication $P -RemoveData

    STSADM

    Open up a Command Prompt using Admin Rights

    Change directory to: cd  C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\BIN

    Type the STSADM command

    stsadm -o deleteconfigurationobject -id [Search Service Application GUID ID]

    3 comments:

    1. Sirisha Rao December 15, 2017 at 11:26 AM

      nice post
      SharePoint Online Training india

      Reply Delete

      Replies

        Reply
    2. John Wills February 4, 2018 at 6:37 PM

      Does this delete the associated AppPool as well?

      Reply Delete

      Replies

      1. Nenad Jurisin September 4, 2018 at 4:18 PM

        No, must be done manually.

        Delete

        Replies

          Reply
      2. Reply
    Add comment
    Load more…

    Newer Post


    Older Post

    Home

    Tags: , , , ,