Geeks With Blogs
Matt deClercq

Seems as though the "destroywi" command has been moved from the Power Tools into the actual TFS administration executables. I case you were wondering here is the /? from the new destroy work item command in TFS 2010.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE>witadmin destroywi /?
Work Item Tracking Administration tool. (C) Copyright 2006 Microsoft Corporation. All rights reserved.

Destroys a work item or work items.  Currently, work items can only be destroyed.  Destroying a work item means the work item is physically deleted and cannot be restored.  The system does not support logical (and thus recoverable) deletion of work items.

Usage: witadmin destroywi /collection:collectionurl /id:id [/noprompt]

 /collection    Specifies the Team Foundation project collection. Use a fully specified URL such as
 /id                  Specifies the ID of the work item to destroy.  Supports multiple IDs delimited by commas
                       such as 12,15,23 (with no whitespace).
 /noprompt   Turns off the confirmation message.

I was looking for this using the old "tfpt destroywi" command and kept getting errors saying the command didn't exist when I finally did some searching and came across the new home for the command. Could be pretty helpful if needed.

Posted on Thursday, February 4, 2010 12:11 PM Software - Team Foundation Server | Back to top

Comments on this post: Delete work items TFS 2010

# re: Delete work items TFS 2010 premium
Requesting Gravatar...
Please any bosy let me know how we can delete teh work item from TFS2010 Premium.

Thank you
Left by Ruchi on May 06, 2010 9:20 AM

# re: Delete work items TFS 2010 Beta 2
Requesting Gravatar...
Very helpful (even for the RTM)

Thank you!
Left by Matt Ruwe on May 28, 2010 4:28 PM

# re: Delete work items TFS 2010 Beta 2
Requesting Gravatar...
Hi Matt, Can you pass a parameter into /ID to delete all workitems? I have couple of thousand I want to get rid off.
Left by marty on Jun 16, 2010 2:45 PM

# re: Delete work items TFS 2010
Requesting Gravatar...
Sorry, the only option to delete multiple work items is to supply a comma delimited list of work item ID's to the /ID parameter.
Left by Matt deClercq on Jun 16, 2010 3:01 PM

# re: Delete work items TFS 2010
Requesting Gravatar...
Can u pls tell me how the work items deleted in tfs 2010
Left by Raj on Feb 29, 2012 2:20 AM

# re: Delete work items TFS 2010
Requesting Gravatar...
Here is something that will help you. I used this simple tool and i was able to delete work item from tfs 2010

Left by sid on Mar 27, 2012 2:50 PM

Your comment:
 (will show your gravatar)

Copyright © Matt deClercq | Powered by: