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.

About the Author

Sleuth

Hello, I'm Dave! I'm a software developer, and I've lived in Nottingham since October 2005, and I tend to write my random thoughts down here in the hope that they might help or entertain someone in the future. If you have a comment about any of the posts you see on this site, please submit it, as you might also be helping someone!

Leave a Reply

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>