Delete a Team Project from Team Foundation Server

Wow...it's been a while since I last wrote a blog post.  It's been a busy month and I've started ramping up to teach Team Foundation Server classes for the Richard Hale Shaw Group.

Anyway, as I'm doing research, I keep finding the answers to non-obvious questions in TFS.  The one that was getting to me was how do you delete a team project that you don't need anymore?  It certainly isn't obvious (translation: possible) through the Team Explorer user interface. 

Answer: go to the Visual Studio 2005 command prompt and use “TfsDeleteProject.exe“. 

Example:

TfsDeleteProject /server:myteamserver.benday.com “Project Name“

There are a lot of other command line and API options in TFS that I'll hopefully get posted up to the blog soon. 

-Ben

 

--- Looking for training or consulting for Team Foundation Server and Visual Studio Team System?  Contact me via http://www.benday.com

posted @ Wednesday, May 17, 2006 8:30 AM

Print

Comments on this entry:

# re: Delete a Team Project from Team Foundation Server

Left by Hans K at 8/2/2006 2:07 AM
Gravatar
Certainly isn't obvious - thanks for the tip!

# re: Delete a Team Project from Team Foundation Server

Left by Julien Lavigne at 8/3/2006 8:01 AM
Gravatar
Hi,
I've done a small user interface to delete a TFS project, you can find it here : http://julien.lavigneducadet.com/index.php?2006/08/03/7-user-interface-to-delete-a-tfs-project

# re: Delete a Team Project from Team Foundation Server

Left by com spec at 10/19/2006 1:22 AM
Gravatar
cool... you are the man... thanks for sharing.

# re: Delete a Team Project from Team Foundation Server

Left by Nilesh at 10/4/2007 2:54 AM
Gravatar
cool... you are rocking... thanks for sharing it is very helpful utility. Can you please post few more utilities if you don't mind?

# re: Delete a Team Project from Team Foundation Server

Left by Paul at 12/6/2007 10:12 AM
Gravatar
thanks to Ben for his Blog and to Julien Lavigne for this tool
my search has ended finally :D

# re: Delete a Team Project from Team Foundation Server

Left by Hami at 4/13/2008 10:47 PM
Gravatar
Was easy and to the point!

Thanks

# re: Delete a Team Project from Team Foundation Server

Left by SJ at 8/6/2008 1:56 AM
Gravatar
Thanks for sharing tool... My search really ended to this command n tis tool... :)

# re: Delete a Team Project from Team Foundation Server

Left by Nanopp at 8/12/2008 7:08 PM
Gravatar
Used the tool, perfect, but now I get the error "TFS error : Unrecognized project name" when trying to add a project to source control.
Anyone else had this problem? Im stuck and as usual, out of schedule

# re: Delete a Team Project from Team Foundation Server

Left by Nanopp at 8/13/2008 9:40 AM
Gravatar
Hi its me; nevermind. I fixed the problem reinstalling virtually everything since SQL server. The things is, after running the program the Report Service databases got corrupted. The idea is great but I think the program may need a lilttle troubleshooting. Thanks anyone, the intention is what counts.. (=

# re: Delete a Team Project from Team Foundation Server

Left by Artur Zen at 8/18/2008 10:38 PM
Gravatar
Hey man, you are the best :-)

# re: Delete a Team Project from Team Foundation Server

Left by Raghavendra at 1/7/2009 8:16 AM
Gravatar
Does it removes the backend database entries created when deleting team project.

whether the process template the sharepoint portal will also get deleted.

# re: Delete a Team Project from Team Foundation Server installer

Left by Wilbur Pereira at 1/27/2009 4:12 AM
Gravatar
Hey guys,

Just liked the tool by Julien and felt that it needed an/a installer/setup wizard which can be downloaded from the following link,
http://payjeez.ly.nchp.in-a.googlepages.com/DeleteTFSProjects.zip

# re: Delete a Team Project from Team Foundation Server

Left by karlo at 2/6/2009 4:21 AM
Gravatar
Hi

Thanks a lot for the utility :)

I deleted a empty project on my TFS 2008 SP1 server. Now I need to recreate it with the same name in captital letter ("Iom" the deleted one, "IOM" the new one): I'm reciving this error log message:

Module: Initializer
Event Description: TF30207: Initialization for plugin "Microsoft.ProjectCreationWizard.Portal" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF30270: Project site folder "JOM" already exists
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Initialize(ProjectCreationContext context)
at Microsoft.VisualStudio.TeamFoundation.EngineStarter.InitializePlugins(MsfTemplate template, PcwPluginCollection pluginCollection)

Any idea?

Thanks

# re: Delete a Team Project from Team Foundation Server

Left by Todd Morrison at 3/10/2009 2:27 AM
Gravatar
useful, thank you

# re: Delete a Team Project from Team Foundation Server

Left by Wilbur Pereira at 3/24/2009 4:54 AM
Gravatar
The error message that you get says
***********************************************
"Project site folder "JOM" already exists" , whereas the project the you are trying to create is "IOM"


***********************************************

I deleted a empty project on my TFS 2008 SP1 server. Now I need to recreate it with the same name in captital letter ("Iom" the deleted one, "IOM" the new one): I'm reciving this error log message:

Module: Initializer
Event Description: TF30207: Initialization for plugin "Microsoft.ProjectCreationWizard.Portal" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF30270: Project site folder "JOM" already exists
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Initialize(ProjectCreationContext context)
at Microsoft.VisualStudio.TeamFoundation.EngineStarter.InitializePlugins(MsfTemplate template, PcwPluginCollection pluginCollection)

Any idea?

# re: Delete a Team Project from Team Foundation Server

Left by Martin Petersen at 7/15/2009 5:26 AM
Gravatar
Just a small comment for using this inteface with TFS 2008.
Instead of using TfsControllerService.ControllerService (which doesn't exist) you have to use TfsControllerService.Classification which does exist.

# re: Delete a Team Project from Team Foundation Server

Left by Robert Vabo at 10/15/2009 1:47 AM
Gravatar
But how do you get the TFS servers - the TeamFoundationServer does not exist

# re: Delete a Team Project from Team Foundation Server

Left by Robert Vabo at 10/15/2009 2:35 AM
Gravatar
I found it. You will have to install the SDK version 1.1 and then add Microsoft.TeamFoundation.Client. Compile it and run the App on the AppTier (or another server that has TFS installed)

# 

Left by KodefuGuru at 10/29/2009 9:55 AM
Gravatar
Delete a Team Project

# re: Delete a Team Project from Team Foundation Server

Left by Andy at 12/11/2009 9:32 AM
Gravatar
Team Foundation Server is the WORST piece of digital dung ever produced in the history of software. Not only does it make you FAR LESS productive, it over-complicates what should be one of the easiest things in software development (simple checkin/checkout), and as usual with Microsoft, the documentation simply SUX!!!

I would sure like to bill Microsoft for the hundreds of hours I have spent trying to work with this over-done overly-complex piece of crap.

# re: Delete a Team Project from Team Foundation Server

Left by EnterpriseDevMan at 1/26/2010 8:50 AM
Gravatar
Sounds to me like you would prefer to manually keep folders on your desktop to manage development projects? Keeping a website for 2 year old jr. certainly doesn't require TFS. Have you developed anything more complex than that, lately?

Hundreds of hours?? You're in the wrong business my friend.

Your comment:



 (will not be displayed)


 
 
 
Please add 8 and 8 and type the answer here:
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910