arame3333
arame3333

Reputation: 10193

Using TFS source control - how to remove files

I am a lone developer, and I am now using TFS 2010, having until recently used VSS. I have not found it easy to get any books for beginners to help me use this. So I have now got my project in source control. But when I check in I get references to a number of files that I no longer use. How do I remove files from the TFS Source Control repository?

So in the example below, you can see lots of files from different projects that I do not want to see.

enter image description here

Upvotes: 2

Views: 11658

Answers (4)

Smita
Smita

Reputation: 21

You need to Destroy those files first, then only those files will get removed from source control.

You can't make any changes in those files - they remain in source control until you destroy them permanently from TFS.

For more info about how to destroy see TF Destroy command utility.

Upvotes: 2

Adam Tolley
Adam Tolley

Reputation: 945

The files in your screenshot are (mostly) listed as add - they are not in TFS yet, so deleting them from TFS is not what you want. Rather you want to ignore them, though that can be tricky: How to ignore files/directories in TFS for avoiding them to go to central source repository?

Upvotes: 1

Banisa
Banisa

Reputation: 51

Click on the last icon that looks like a solution (.sln) file icon (last icon on the top vertical row). It's right next to the refresh icon and just above the "Comment" box. That should clear all non-related project files, and only show the files on your current project.

Upvotes: 5

LordHits
LordHits

Reputation: 5073

In Source Control Explorer in Visual Studio, simply right-click on files and folders and choose "Delete". Then right-click again and choose "Check-in pending changes".

Upvotes: 2

Related Questions