Date/Time D"any .Net Framework-supported format"
or any of the date formats of the local machine
Changeset number Cnnnnnn
Latest version T
To run the command, you have to specify the collection URL. An easy way to get this is open your Team Explorer window in Visual Studio (View > Team Explorer), select the root server node and look in the Properties window at the Url property.
Now you need the server name of the folder or file you want to purge. Locate the file or folder in the Source Control Explorer, right click and choose Properties…
The Server Name: value is what you want and can be selected and copied to the clipboard.
Now you can run the command:
tf destroy <strong>$/MyProject/Main/Bin</strong> /collection:https://servername:8080/tfs/myproject<br /> Do you want to destroy $/MyProject/Main/Bin and all of its children? (Yes/No) y<br /> Destroyed: $/MyProject/Main/Bin;X3601<br /> Destroyed: $/MyProject/Main/Bin/Native;X3601
Now if you refresh in Solution Explorer, the purged items won’t even show up anymore.