Wednesday, January 30, 2013

How to permanently delete an TFS branch

Delete context menu on TFS Source Control explorer will not purge the files and also it need you to get the latest and then delete (more steps), but it does not purge the files.


If you want to permanently delete a TFS branch, use “tf destroy” command on the VS command prompt. Incase if you want to keep the history add “/keephistory” to it.



tf destroy “<branchPath>"


Destroy Command msdn link has full details:


[It’s been sometime, I purged an branch and I wanted to quickly get the purge comment again and search on Bing and google with keyword permanently delete tfs didn’t bring relevant answer, so thought I’ll post it for permanently delete.]







Anonymous said...

Thanks!! Just what I was looking for.

Anonymous said...

Thanks a lot!

Kiquenet said...

How can I do it using TFS API in C# for TFS 2008 , VS 2010? said...

Pretty Helpful Regards
How to Permanently Delete Files from Hard Drive

lee woo said...

The best way to destroy an enemy is to make him a friend. See the link below for more info.


joy said...

I am very happy to visit your site and i did like it. I was able to get some informative topics. keep it up and you can also visit my site for your reference. Thank you and have a good day.

Fillip Kirkorov said...

It is best to take part in a contest for top-of-the-line blogs on the web. I will recommend this website! online casinos for us players