views:

97

answers:

3

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?

A: 

You can try doing Get Specific version. Right Click parent Folder of the file in Source Control and choose Get Specific version.It will open Get window, here choose Type as Latest Version and check the both available Check box options.

Jehan33
A: 

Thanks. Try to get specific version as you said, the deleted folder still there. Then try to delete it again or exclude from project, got following error:

This operation can not be completed. You are attempting to remove or delete a source-controlled item where the item is either exclusively locked elsewhere or otherwise unable to be deleted from source control.

Any idea?

KentZhou
A: 

Hi KentZhou,

Sorry for the late reply, I missed to check your reply.

The above error suggests that the folder may be Checked out & locked by some other user.

In Source Control, are you able to see the Status of the folder as Checkout & lock?

If yes,can you use Status Sidekick of TFS Sidekicks tool and try to unlock the folder (http://www.attrice.info/cm/tfs/).

Then, try to delete the folder again.

Jehan33