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.

 

E.g.:

tf destroy “<branchPath>"

 

Destroy Command msdn link has full details: http://msdn.microsoft.com/en-us/library/bb386005(v=VS.100).aspx

 

[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.]

 

 

 

 

 

6 comments:

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?

MostUsefulTricks.com 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.


#destroy
www.ufgop.org

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.

n8fan.net

www.n8fan.net