Solved

Does the Team Foundation Server 2010 command "TfsDeleteProject"  delete all the files on server?

Posted on 2010-11-29
5
761 Views
Last Modified: 2012-06-27
expert:
I need to delete all the files (data) for a certain team project from the TFS server. I've used the "TfsDeleteProject" command before to remove team projects from list of Team Projects on TFS. However I am not sure if it actually frees on the memory the server. Additionally I lost the Team Project mapping and cannot "Open from Source"  or check in or checkout or the delete files indiviually. Will the "TfsDeleteProject" command delete and free up disk space on the server and if not how would you find and delete those files off the TFS server that stores the files? help
0
Comment
Question by:tcmmaxt
  • 2
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
ChetOS82 earned 250 total points
Comment Utility
Deleting a project markes all of the files as deleted in source control, it doesn't physically remove the files.  The "tr destroy" command is used to actually remove the files.

The files are stored in a SQL database, not on the filesystem, so you cannot delete them in the normal fashion.
0
 

Author Comment

by:tcmmaxt
Comment Utility
ChetOS82: great, some me an example how to use the "tr destroy" command to delete from database?
0
 

Author Comment

by:tcmmaxt
Comment Utility
ChetOS82: great, show me an example how to use the "tr destroy" command to delete from database?
0
 
LVL 23

Assisted Solution

by:Admin3k
Admin3k earned 250 total points
Comment Utility
I think my previous answer to a similar question still stands.
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_26626940.html
Do not worry about disk space or server resources, Deleted team projects using TFSDeleteproject are gone for good.

as for the tf destroy command, Please note that in order to immediately clean up the destroyed content use the /startcleanup switch

http://msdn.microsoft.com/en-us/library/bb386005.aspx
0
 
LVL 18

Expert Comment

by:ChetOS82
Comment Utility
The full syntax for the tf destory command is here: http://msdn.microsoft.com/en-us/library/bb386005.aspx

TfsDeleteProject does a "soft delete" of the source code (it just marks the files as deleted so they don't show up).  The files are still stored in the database and therefore take up disk space.  Disk space is cheap, so I suggest that you just leave it at that.

However, if you really want to get the files out completely (and irreversibly) then use tf destroy.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now