Home > Team Foundation Server, TFS 2010, Visual Studio > Delete files permanently in TFS

Delete files permanently in TFS

February 10, 2012

In TFS Source control you can not delete files permanently. Its just a temporary delete. Deleted folder/files can still be viewed from Team explorer through option called “show deleted items in source control explorer” from Tools > Options > Source Control > Visual Studio Team Foundation Server  and then can be “UnDeleted” if required.

So, what if you want a permanent delete with NO recovery. This can be done using team foundation command line interface. Following is the syntax for the same.

tf destroy   <path for TFS Item to be deleted>    collection:<TFS Collection Name>

About these ads
Follow

Get every new post delivered to your Inbox.