Search This Blog

Wednesday, 23 July 2014

Deleting a Service Application with Power Shell


Here is how to delete a service app with Power Shell

$spapp = Get-SPServiceApplication -Name "<Service application display name>"
Then to keep the data
Remove-SPServiceApplication $spapp
Or remove Data
Remove-SPServiceApplication $spapp -RemoveData
More details

If the above does not work you can try this command(Dirty Method):
stsadm -o deleteconfiguratio nobject -id <ID>

Where you can change "<id>" to $spapp (Suppose to, did not test it) 
you can also run get-SPServiceApplication for a list.

No comments:

Post a Comment