Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete from TFS all files that are deleted from working copy?

I've manually deleted some files/folders in my workspace. How do I pend deletes for those items in my TFS workspace and get those deletes to be reflected in the repository (via command line or programmatic API).

like image 740
user626528 Avatar asked Sep 05 '12 06:09

user626528


People also ask

How do I permanently delete a file in TFS?

Use the tf destroy command to destroy, or permanently delete, version-controlled files from Team Foundation version control. The destroy action cannot be reversed. You must not destroy files that are still needed.

Can I delete $TF folder?

Deleting these files will be only temporarily since TFS will force their recreation as soon as you perform a Get operation. You can reduce the size of this folder by doing a few things: Create small, targeted workspaces (only grab the items you need to do the changes you need to make)

How can I tell who deleted a file from the server?

Reviewing events. Open the Event Viewer and search the security log for event ID 4656 with a task category of "File System" or "Removable Storage" and the string "Accesses: DELETE". Review the report. The "Subject: Security ID" field will show who deleted each file.


1 Answers

You should be able to use the tfpt online /deletes command from the Team Foundation Server Power Tools. It will prompt you to "promote" any untracked local changes that not in the Server Workspace.

like image 176
DaveShaw Avatar answered Oct 17 '22 08:10

DaveShaw