About Me

My photo
a Dynamic and Energetic guy.....

Thursday, March 25, 2010

How to delete a TFS task

Sometimes we want to delete task that we have added to TFS
But there is a no way to delete using a UI.

we have to use command promt

cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE or
cd  C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
then type follwing command

witadmin.exe destroywi /Collection:http:\\Optimus:8080\tfs\IPG /id:9
Collection == Team Project collection url
Id == ID that is generated by TFS


Simple as a UI click :)


Additional Details
Most of the people are not getting this witadmin.exe

So i have uploaded it.   Download WITADMIN.EXE

2 comments:

GoldHead said...

Works with VS 2010?

I can't find witadmin.exe file.

Regards,
Zlatko

Chanaka Gamage said...

Yes, we are not getting it with TFS.
We have 2 options
(1) We can install TFs power tools
(2) Smart solution - we can take it from any other machine & put in to "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE"

Then we can use this command.
I did 2nd option.

My Masters