Destroy in TFS Beta 3

How I can permanently destroy folders in source control?

[64 byte] By [AlexeyRokhin] at [2007-12-17]
# 1
That feature was cut for V1. You can still delete the item from version control, but it will still be in the repository (in a deleted state), available for you to undelete later if desired. You can always change permissions on the item to prevent undelete (remove the PendChange permission) if that's a concern.

We've had customers ask about reclaiming space from deleted items, and we're considering what we can do in V1 to help with that.

JamesManning at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
Alexey,

This is what you need to do:

If the folder / project you are trying to delete is not checked in then check it in.

Right click on the folder and click Delete. You will see a red X icon before the folder you just deleted. At this stage it's basically marked for deletion.

Last thing, check the folder back in.

It will not appear in source control anymore.

DeepakKapoor at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
Deepak - unfortunately, that actually does not "permanently destroy" the item in version control. Specifically, doing "delete" just changes the item so it's in a deleted state. It's still stored in the SQL Server database, and can be restored later using "undelete". You can turn on viewing deleted items in the Source Control Explorer and you'll still see in the tree, in fact.

We considered a "Destroy" feature where the item would be truly removed from the database, but that was cut for V1.

JamesManningMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
Ah!

You know, honestly I kind of like this. I've seen many times things permanently deleted from Source Control with a view that we they will never ever be needed. "Never" is a strong assumption and should never be used Smile

DeepakKapoor at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5
Indeed. Permanent deletion of folders OR files causes havok when you want to "get" an earlier version that had the deleted folders or files...
MatthewWatson at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 6

So it is not usefull for your 1 situation, but it is very usefull for many other it is just a feature that should have been in there, just autorize the destroy option and dont use it if you dont need it.

But without the destroy our TFS is getting messy fast.... Destroy where art thou.

PaulPaschedag at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 7
It's clearly a need people are going to have before long. I don't know what, but we'll do something to make sure people have a way to permanently get rid of data. It won't be in V1 RTM but we won't make people wait years for it either.

Brian

BrianHarry at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified