Couldn’t seem to find anything on how to delete a Work Item from Team Foundation Service, anyhow, here are the steps.
- Install the latest and greatest Microsoft Visual Studio Team Foundation Server 2012 Power Tools (http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f).
- Open a Visual Studio command prompt
Use the witadmin destorywi command:
witadmin destroywi /collection:https://yourprefix.visualstudio.com/DefaultCollection /id:yourWorkItemId
Note: when you create a Team Foundation Service account, all your projects will simply reside under the default “DefaultCollection”, this applies to everyone and each account only has this as it’s one and only Project Collection, ever (team) project you create will be under the default “DefaultCollection”.
- Answer yes, and your work item, will now be deleted.
example: witadmin destroywi /collection:https://<yourprefix>.visualstudio.com//DefaultCollection /id:1523
Note: You may get a Microsoft Live Account dialog window, if you aren’t already logged into your Team Foundation Service Portal. If so, simply login as you would normally do when logging into tfs.visualstudio.com.