Thursday, January 10, 2013

How permanent is a deletion at Team Foundation Server?

One of my coworkers mentioned to me today that if I delete something from a solution and then commit my changes to TFS that what I've deleted could be undone as a delete. However, if I browse the files directly at TFS and then delete something there, my coworker asserted I was destroying it forever. I wonder how I would thus temporarily delete from a web site as opposed to a web solution.

2 comments:

  1. Deleting a file or folder just marks it as deleted in the database, but it's still there and can be recovered using the undelete command.

    If you use tf destroy to destroy files or folders, they are removed from the DB (the metadata is removed immediately and the file content is removed by a job that runs nightly to remove content no longer referenced).

    Buck

    ReplyDelete