Out of the box there is no way to delete work items inside TFS 2010. Does this mean that it is not possible? No, you still have the Team Foundation Server Power tools which add some commands that allow you to delete work items and work item types.
After installing them, you have two new two commands in your toolbox:
- DestroyWI: Use this to destroy one or more work items.
- DestroyWITD: Use this to destroy an entire work item type — this means, you are destroying every work item of that type and the type itself.
Calling these commands needs to be done throught the witadmin command which can be found in the Visual Studio directory(Program Files\Microsoft Visual Studio 10.0\Common7\IDE)
Usage: witadmin destroywi /collection:collectionurl /id:id [/noprompt]
/collection Specifies the Team Foundation project collection. Use a fully specified URL such as http://servername:8080/tfs/Collection.
/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