Solved

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

Posted on 2010-11-29
5
772 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
ChetOS82 earned 250 total points
ID: 34231283
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
ID: 34231601
ChetOS82: great, some me an example how to use the "tr destroy" command to delete from database?
0
 

Author Comment

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

Assisted Solution

by:Mohamed Osama
Mohamed Osama earned 250 total points
ID: 34242295
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
ID: 34242356
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

717 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