Showing posts with label Delete SA. Show all posts
Showing posts with label Delete SA. Show all posts

Thursday, October 15, 2015

Delete a service application in SharePoint 2013

 Delete a service application in SharePoint 2013


service applications can be deleted by using the SharePoint Central Administration website or by using Windows Power Shell 3.0 cmdlets.

Before deleting a service application, verify that its removal will not adversely affect users. As a best practice, you should ensure that no web applications are currently consuming the service application that you are going to delete. 

When you delete a service application, you have the option of also deleting the service application database. Some service applications do not have databases. If you plan to create the service application again in the future, do not delete the service application database. If the service application is temporary, you will most likely want to delete the database during this operation.

How to delete by the CA: Please follow the steps below to delete the Service Application by the GUI in CA.

1.    Verify that the user account that is performing this procedure is a member of the Farm Administrators SharePoint group.
2.    On the SharePoint Central Administration website, click Application Management, and then click Manage service applications.
3.    On the Manage Service Applications page, click the row that contains the service application that you want to delete. The ribbon becomes available.
4.    On the ribbon, click Delete.
5.    In the confirmation dialog box, select the check box next to Delete data associated with the Service Applications if you want to delete the service application database. If you want to retain the database, leave this check box cleared.
6.    Click OK to delete the service application, or click Cancel to stop the operation

How to delete by using the Power Shell: Please follow the steps below to delete by using the power shell commands.
  1. Ensure  that you meet the following minimum requirements:
·         You must have membership in the securityadmin fixed server role on the SQL Server instance
·         You must have membership in the db_owner fixed database role on all databases that are to be updated.
·         You must be a member of the Administrators group on the server on which you are running the Windows Power Shell cmdlet.

2.Start the SharePoint 2013 Management Shell.

2.    To retrieve the service application that you want to delete, type the following command: 

$spapp = Get-SPServiceApplication -Name "<Service application display name>"


3.    To delete the selected service application, run either of the following commands. In both cases, you are prompted to confirm the deletion. 

·         To delete the selected service application without removing the service application database, type the following command:

Remove-SPServiceApplication $spapp
·To delete the selected service application and also delete the service 
application database, type the following command:

Remove-SPServiceApplication $spapp -RemoveData

 

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

ShareThis

X