[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 809
  • Last Modified:

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

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
tcmmaxt
Asked:
tcmmaxt
  • 2
  • 2
2 Solutions
 
ChetOS82Commented:
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
 
tcmmaxtAuthor Commented:
ChetOS82: great, some me an example how to use the "tr destroy" command to delete from database?
0
 
tcmmaxtAuthor Commented:
ChetOS82: great, show me an example how to use the "tr destroy" command to delete from database?
0
 
Mohamed OsamaSenior IT ConsultantCommented:
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
 
ChetOS82Commented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now