Deleting a Team Project

I am using Beta 3 Refresh. I tried using the TFSDeleteProject utility to delete permanently a team project but it does not work. Here is what I use at the command prompt:

TFSDeleteProject "My Project Name"

All I get in return is the help for the utility. The project is not deleted.

Then I tried specifying the server name:

TFSDeleteProject /SERVER-NAME "My Project Name"

and I get the error:
Unrecognized option '/SERVER-NAME'

What am I doing wrong

Thanks for any help you can provide.




Answer this question

Deleting a Team Project

  • Dharmesh M Mehta

    Here is how you do it:

    TFSDeleteProject.exe /TeamFoundationServer:TFSServerName TeamProjectName1

    where TFSServerName is the name of the Team Foundation server

    TeamProjectName1 is the name of the project to be deleted.  (Please use quotes if there are spaces in the name.)

    Rajesh




  • Gregory English

    Rajesh,

    Thanks. Your example was very useful. I got it to work. My project is now deleted.

    However, when I create a new project with the same name, it's rejected because there is another project with the same name. So something went wrong during the deletion process, I guess. Any clue what's going on


  • AJ_Developer

    In my above example,

    Replace

    "TFSServerName" with the machine name on which you have installed Application Tier.

    "TeamProjectName1" with your project name that needs to be deleted.

    TFSDeleteProject.exe /TeamFoundationServer:<Your Application Tier Machine Name> <your project name>

    Rajesh



  • EvenOvich

    There were a number of bugs in beta 3 regarding deleting and recreating Team Projects with the same names.  Many of the issues have been hit by various users and reported in these forums.  You may try running "iisreset" on the application tier to re-start the mid-tier and then try re-creating the Team Project.  However, with beta 3, I'd recommend creating a Team Project with a new name.

    Buck

  • Derek Ju

    Thanks Rajesh. My problem is that I don't know the value for TeamFoundationServer and for TFSServerName. Where can I find this I have everything installed on a single server, by the way.
    Thanks

  • Deleting a Team Project