Wednesday, March 21, 2012 9:06 AM
I would like to know if there is any way to completely delete a test case from database?
Right now, when I delete a test case from MTM, it seems that the test case is only unlinked; it still can be Query in VS My test cases. how to completely delete test cases? thanks!
Thursday, March 22, 2012 3:54 AMOwner
Based on your description, I got to know that you would like to delete test cases work items from TFS server permanently. One way for you is to do that by using the witadmin destroywi command.
Open one command line with the Administrator permission, and execute the following two commands:
cd: Drive:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
witadmin destroywi /collection:CollectionURL /id:id [/noprompt]
Please see this article for further information about witadmin destroywi command: http://msdn.microsoft.com/en-us/library/dd236908.aspx
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
Thursday, March 22, 2012 4:53 AM
The ideal way if to change the state of the test case to Closed. Most of the queries are designed to not look at closed items.