Removing a Project from TFS

     This was a question I asked myself awhile back and it comes as a surprise that TFS does not have a way to remove projects via the web. For security reasons this might make since but it is rather annoying at time as the solution I found for this was not completely obvious or well kno.

Research
Delete a team project [TFSDeleteProject]

What I did

    My folders location was different than what the page pointed to but I was able to get things works and from there it was a matter of figuring out what I wanted to delete (make sure your hitting the right url).

Folder Example: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
Url Example: https://repository.visualstudio.com/DefaultCollection



Command
Now to delete...
TFSDeleteproject [/q] [/force] [/excludewss] [/collection:URL TeamProjectName] 

Notes
    Now things the page does not tell you and could be useful...
Names of projects are not case sensitive. Secondly projects you delete may not necessarily
be removed from your list of "recent projects and teams" when you are viewing the default
collection page.


    Lastly make sure you are using the url of your tfs and followed by "/DefaultCollection", you will always be prompted whether to delete (y|n) might want to just use the "/q" to make things go quick if you are deleting a lot. You might want to know that if you have multiple of visual studios installed it does not matter which folder you select! It could be...

( lowest 10.0 and up)

Example1: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDEorFolder Example2: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE

    It doesn't matter just so longs at you are in IDE and can see the TFSDeleteProject.exe. You can check this if you start typing "TFSDeleteProject" and press tab. Should see the ".exe" append to your cmd prompt.



Comments

Popular posts from this blog

Nginx Best Practices Extended

Installing Windows on Acer chromebook 15 cb3-532

Entity Framework: ToListAynsc & WhereAsync