datadamnation
datadamnation

Reputation: 1892

TFS 2010: How to check in files that were deleted but not deleted through TFS

I have some files in a local workspace that were checked out and then deleted but were not deleted through TFS. TFS still has them marked as "edit" in the pending changes view. When I try to check-in the deleted files, I get an error saying the files cannot be found. Is there a way to tell TFS that these files have been deleted and that they should be deleted in source control as well?

Upvotes: 4

Views: 4539

Answers (3)

Paul Michaels
Paul Michaels

Reputation: 16695

I think you should be able to do this via source control explorer: View -> Other Windows -> Source Control Exlorer. Find the code file that you want to mark as deleted and right-click and select delete.

For future reference, TFS Power Tools is very useful for this kind of thing.

Upvotes: 0

Quinton Bernhardt
Quinton Bernhardt

Reputation: 4803

You could, through team explorer, right click on the deleted files and do a undo pending changes. Then through team explorer delete them and check them in.

If that doesn't work - right click on the deleted file through team explorer; do a get specific version and check both checkboxes to overwrite files:

enter image description here

This will fetch the deleted [from workspace] file from TFS. Perform an undo pending changes on the file. Then delete the file through team explorer and check it in.

Upvotes: 4

Barry Kaye
Barry Kaye

Reputation: 7761

If there aren't too many files, just create some dummy ones on disk, check them in, then delete them through TFS.

Upvotes: 0

Related Questions