How to remove a empty folder from a project under TFS control?

KentZhou picture KentZhou · Aug 11, 2010 · Viewed 21.7k times · Source

Suppose I have a project MyLib, under that, I created a folder say Folder1. No file under this folder. The project is connected to TFS.

Then I want to remove this folder Folder1. I deleted it from context menu and checked the project into TFS.

Then I check the data on TFS with Team Explore->Source Control, Folder1 is deleted. But it is still there in VS 2010 on local computer. I closed VS 2020 and deleted Folder1 from widows explore. Then open VS 2010 again, the Folder1 is still there. I can't remove it locally from MyLib!

Confused. How to resolve this problem?

Answer

sra picture sra · Apr 11, 2011

Simply create a file within the folder and delete it along with the new file. TFS has some problems with empty folders when you try to delete them.