Lambo1990
Lambo1990

Reputation: 3

Removing deleted files from TFS 2012 Source Control

I am having issues trying to mark files as 'Delete' that have been deleted from my local machine by an application. The issue is that these files no longer exist so TFS will not process them as 'Deleted'.

I have downloaded the TFS 2012 Power Tools and tried to run 'tfpt.exe online /deletes /recrusive ' but this simply gives me a list of folders that these missing files sit in, not a list of each and every file themselves. This means that when I click 'Pend changes' I get the following error message for each command -

"One or more children have pending changes".

My question is, is anyone aware of a method I can use to carry out this process?

Upvotes: 0

Views: 1734

Answers (2)

Edward Thomson
Edward Thomson

Reputation: 78623

It sounds like tfpt online is detecting that the folders have been deleted. It is trying to pend a delete on those folders, but it sounds like you have already pended different changes on the files within those folders.

tfpt online will not pend a deletion of the folders if you have other changes pended for its children.

If you want to delete the folders, undo the pending changes on their children, make sure that the contents on-disk match what you want, then re-run tfpt online.

Upvotes: 3

Seany84
Seany84

Reputation: 5596

If there's not too many files you could run the destroy command in Visual Studio Command Prompt.

Destroys, or permanently deletes, version-controlled items from Team Foundation version control.

Command

tf destroy $/MyProject/Files/123.cs /collection:http://servername:8080/tfs/myproject

Upvotes: 0

Related Questions