23

as the question says...does anyone know how I can remove these files? I didn't commit the changes in TFS before I deleted them locally and now they always appear in the Pending Changes window...I'd like to get rid of them

thanks

StuartN
  • 329
  • 1
  • 9
kurasa
  • 5,205
  • 9
  • 38
  • 53

5 Answers5

62

Right-click on the file in the Pending Changes List, choose Undo.

Hossein Narimani Rad
  • 31,361
  • 18
  • 86
  • 116
Brian Fenske
  • 808
  • 6
  • 7
  • 3
    it can't find the file to undo the changes because I have deleted it – kurasa May 05 '10 at 05:07
  • 6
    believe it or not I actually had this same exact problem. I also didn't have the files. I right-clicked "view pending changes" on the solution and it pulled up all of the pending changes to my deleted files. I then selected them all, and right-clicked undo. It worked! – KevinDeus Dec 07 '10 at 20:00
  • @kurasa you might have been in the wrong workspace therefore not seeing the correct list of files – Ryan Rodemoyer Jun 21 '13 at 18:57
  • Worked for me, I had lots of backup files from an upgrade that had been checked in to source, i deleted them to clean up the project then there were 1000 items that could not be checked in due to not being there. – WraithNath Aug 20 '14 at 10:32
  • 4
    "Undo" is kind of misleading, since really the changes have been undone in the version you're working with. – Señor O Sep 19 '14 at 17:46
9

Solved

I recreated the deleted folder and files in TFS and checked them in. Then I deleted them and they were gone from the Pending changes window.

StuartN
  • 329
  • 1
  • 9
kurasa
  • 5,205
  • 9
  • 38
  • 53
3

It's simpler than that. Just select the deleted file(s) and right click and select Check-in. Files will be "checked-in" and deleted.

Guy Acosta
  • 31
  • 2
1

Go to show all files. The deleted files will be shown. Delete them. Done.

avinava basu
  • 119
  • 4
0

When you have a large amount of files, and it's hard to tell which files have been deleted, and which haven't, it's best to backup the files and undo all changes. After this, you can re-add the files and VS will finally refresh the list.

Dries Geenen
  • 582
  • 5
  • 14