How to completely delete test case from database TFS?
-
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!
All Replies
-
Thursday, March 22, 2012 3:54 AMOwner
Hi wangjianz,
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
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by niveditabawa_MSFTMicrosoft Employee, Moderator Thursday, March 22, 2012 2:22 PM
- Marked As Answer by niveditabawa_MSFTMicrosoft Employee, Moderator Monday, March 26, 2012 7:18 AM
-
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.
Thanks,
Anuj
http://www.anujchaudhary.com

