Delete TFS 2010 Work Items

פברואר 18, 2010


Many customers ask me about deleting Work Items from the TFS.


Here is how to do it for TFS 2010:


Step 1: Log-in to the TFS using a TFS administrator user.


Step 2: Open a command line and go to:


32bit machine – “X:\Program Files\Microsoft Visual Studio 10.0\Common 7\IDE”
64bit machine – “X:\Program Files (x86)\Microsoft Visual Studio 10.0\Common 7\IDE”


Step 3: Use the “witadmin.exe destroywi” command in the following way:


witadmin.exe destroywi /Collection:http:\\[ServerName]:8080\tfs\[CollectionName] /id:[WI ID]


you can add as many Work Item IDs as you like using [,] for example 54,88,92 etc.


You can disable the prompt message by using /noprompt.


For deleting work items in TFS 2008 see:
http://blogs.microsoft.co.il/blogs/eranruso/archive/2009/08/10/delete-tfs-work-items.aspx


Have Fun!!!

הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *

4 תגובות

  1. Christopher Havilandאפריל 26, 2010 ב 16:42

    What if you don't have witadmin.exe? (I have TFS installed on a workstation, though I'm not sure if that is the reason I don't have witadmin.exe.)

    הגב
  2. Eran Rusoמאי 1, 2010 ב 18:59

    The witadmin.exe comes with the Team Explorer installation and not with the TFS installation.

    All you have to do is just to install the Team Explorer 2010 and you will have it!

    Have Fun!!!
    Eran Ruso

    הגב
  3. Joel Kotarskiיולי 19, 2010 ב 16:05

    Thanks for this tip!

    הגב
  4. Jatinder Amarנובמבר 2, 2010 ב 22:21

    Very useful tip. I used it an dworked like a charm.

    הגב