tags:

views:

11

answers:

1

Is it possible to remove a file with it's history from TFS source control? One of our team members hardcoded his password into a file and now we must remove the file with all it's history so the password cannot be found.

A: 

Use it carefully:

First, go to a directory that is mapped to a workspace.

tf destroy "$/path/filename.xyz"

I would use the /preview switch first to ensure it is destroying what I expect.

If you've done any branching, you'll want to destroy those, as well.

I have to agree with @Graphain... it seems easier to just use a different password (and don't hard code it this time).

Robaticus