{"id":18625,"date":"2018-03-04T14:37:00","date_gmt":"2018-03-04T14:37:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/?p=18625"},"modified":"2019-02-14T20:18:28","modified_gmt":"2019-02-15T03:18:28","slug":"freeing-disk-space-on-a-developer-machine","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/freeing-disk-space-on-a-developer-machine\/","title":{"rendered":"Freeing Disk Space on a Developer Machine"},"content":{"rendered":"<p>In this post,&nbsp; Senior Application Development Manager, <a href=\"https:\/\/www.linkedin.com\/in\/pkingroch\/\">Patrick King<\/a>, shares some tips for freeing up disk space on a development machine.<\/p>\n<hr>\n<p>As a developer, I see my free disk space diminish over time. It usually isn\u2019t an issue if I have ample disk and get to change hardware out every few years, but that isn\u2019t the case for everyone. This post lists a set of strategies I have used to help customers free up hard drive space on developer machines.<\/p>\n<h3><font style=\"font-weight: bold\">The Basics<\/font><\/h3>\n<p>This Microsoft Support article covers the most common ways to free disk space: <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/17421\/windows-free-up-drive-space\">https:\/\/support.microsoft.com\/en-us\/help\/17421\/windows-free-up-drive-space<\/a><\/p>\n<p>Once you have gone through those, developers may be able to free additional disk space using the tips below:<\/p>\n<h3><font style=\"font-weight: bold\">Delete Un-Needed Local Source Branches<\/font> <\/h3>\n<p>Delete from your local hard disk those source branches that are no longer in use. These can build up as you move from working on one release to another. <\/p>\n<h3><font style=\"font-weight: bold\">Don\u2019t Download Source That You Don\u2019t Need<\/font><\/h3>\n<p>When you first map to a new team project in Visual Studio, by default the \u201cCreate Workspace Mapping\u201d process in Visual Studio will map and get an entire team project. But if there are parts of that team project\u2019s source that you do not work with, you don\u2019t need that source on disk.<\/p>\n<p><strong>Tip: <\/strong>As a practice, I map to local folders at the project collection, team project or branch level, and then click Cancel when asked if I want to download the workspace source. Then I use Source Control Explorer to selectively get those folders containing the solutions I need to work with. <\/p>\n<h3><font style=\"font-weight: bold\">Remove Test Results from Old Test Runs<\/font><\/h3>\n<p>If you run Visual Studio unit or performance test runs, the test results folders may consume significant space if you have a lot of tests or large project outputs. For Visual Studio projects, you can find these on disk in the root of your solution directory in a folder named TestResults. That folder will contain a folder for each test run, as shown in the example below. You can delete those folders if you don\u2019t need the old test run results and need to free up space.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/31\/2019\/04\/clip_image00218.jpg\"><img decoding=\"async\" width=\"1028\" height=\"234\" title=\"clip_image002\" alt=\"clip_image002\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/31\/2019\/04\/clip_image002_thumb16.jpg\" border=\"0\"><\/a><\/p>\n<h3><font style=\"font-weight: bold\">Clean up IntelliTrace Files<\/font><\/h3>\n<p>If you use Visual Studio Ultimate or Enterprise to debug applications and you have enabled storage of <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/debugger\/intellitrace-features\">IntelliTrace<\/a> recordings, you may be able to free up substantial disk space by cleaning out the IntelliTrace files folder. By default, this is at C:\\ProgramData\\Microsoft Visual Studio\\12.0\\TraceDebugging for Visual Studio 2013. You must check the setting below in each version of Visual Studio in use (under Tools-&gt;Options) to be certain of the paths to check. <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/31\/2019\/04\/clip_image00415.jpg\"><img decoding=\"async\" width=\"1028\" height=\"300\" title=\"clip_image004\" alt=\"clip_image004\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/31\/2019\/04\/clip_image004_thumb15.jpg\" border=\"0\"><\/a><\/p>\n<h3><font style=\"font-weight: bold\">Remove Old User Profiles<\/font><\/h3>\n<p>In an enterprise, you may have inherited your machine from someone else. Maybe they synched their iTunes to their work PC, or kept their workspaces under their user folder. This article describes how to delete a user profile. It is for an older Windows version, but is still relevant for newer systems, except that \u201cMy Computer\u201d is now called \u201cThis PC\u201d. <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/814584\/how-to-delete-a-user-profile-in-windows-server-2003\">https:\/\/support.microsoft.com\/en-us\/help\/814584\/how-to-delete-a-user-profile-in-windows-server-2003<\/a><\/p>\n<hr>\n<p><a href=\"https:\/\/blogs.msdn.com\/b\/premier_developer\/archive\/2014\/09\/15\/welcome.aspx\"><strong>Premier Support for Developers<\/strong><\/a> provides strategic technology guidance, critical support coverage, and a range of essential services to help teams optimize development lifecycles and improve software quality.&nbsp; Contact your Application Development Manager (ADM) or <a href=\"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/contact-us\/\"><b>email us<\/b><\/a> to learn more about what we can do for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post,&nbsp; Senior Application Development Manager, Patrick King, shares some tips for freeing up disk space on a development machine. As a developer, I see my free disk space diminish over time. It usually isn\u2019t an issue if I have ample disk and get to change hardware out every few years, but that isn\u2019t [&hellip;]<\/p>\n","protected":false},"author":582,"featured_media":37840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[40,49,3],"class_list":["post-18625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-permierdev","tag-development","tag-development-environment","tag-team"],"acf":[],"blog_post_summary":"<p>In this post,&nbsp; Senior Application Development Manager, Patrick King, shares some tips for freeing up disk space on a development machine. As a developer, I see my free disk space diminish over time. It usually isn\u2019t an issue if I have ample disk and get to change hardware out every few years, but that isn\u2019t [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/18625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=18625"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/18625\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/37840"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=18625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=18625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=18625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}