Wednesday, February 10, 2010

How to Delete SharedServices?

What ever reason you want to delete the shared services, because of wrong name or wrong site, you can do it either using UI or STSADM tool. Some times UI delete option is disabled, so you dont have any choice other than using STSADM tool.

You can use the following STSADM syntax to delete the sharedservices. In command propmt, go to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN"

STSADM -o deletessp -title "SharedServices1"

Before you delete the sharedservices, you have remove any sites within it, then only it allow you remove the sharedservices.

I recommend to delete the sites from the "Application Management" --> Delete Web Application. I also found the following approch to delete the dependencies which i am not sure. May be you try with your own risk

Open SQL Server Management Studio and execute following query to fetch the SharedServices1 dependencies:

SELECT * from Objects WHERE Objects.name like '%SharedServices1%'

Note that in the "Status" column, you'll find "3". Changing that back to default "0" does the job:

UPDATE Objects SET Objects.Status=0 WHERE Objects.name='SharedServices1'

Hope this post helped some one.

Good Luck.


Before you leave:

  • Tell me whether you like this article or not? Rate this post accordingly by selecting the stars below.
  •  Any suggestion, question or comment? Please post it in the comments below.


0 comments:

Post a Comment