Deleting a Team Project from TFS 2008 and WSS
Recently we tried to set up our VSS projects into TFS, but did it the wrong way to start with and decided to start again. So, we went about deleting our project from TFS… it seems TFS doesn’t allow that. Not to worry, we found this article explaining how to delete a project using:
TfsDeleteProject /server:tfs-server-name "Project Name" /force
This appeared to work except for the exception we got from SharePoint Services:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
Fair enough, it seemed we had a problem that the team portal had broken somehow, but this was preventing us from re-creating the team project once more because the wizard was unable to create the site over the top of this one.
Unfortunately when attempting to browse to the site, we got a “400 Bad Request” error, and when attempting to delete the site using the Central Administration, we couldn’t select it from the list. The site truly seemed to be a ghost (or relic) of what was once a great site.
Fortunately, after my colleague found this article explaining how to delete orphaned sites from WSS, we were able to solve the whole problem using step 2: removing the WSS_Content database from WSS, and re-adding it.
This idiotic process of deleting a team project certainly needs cleaning up in the next version, but for now, I hope this helps anyone else with this problem.

Leave a Reply