docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Insanely large DocFX folder

Open guardrex opened this issue 3 years ago • 4 comments

Operating System: Windows

DocFX Version Used: 2.59.0

Template used: default (I think)

Steps to Reproduce:

  1. Check the size of the .docfx/downloads3 folder.

Expected Behavior:

A reasonable size ... i.e., DocFX does something to keep this folder from growing forever until the system runs out of drive space.

Actual Behavior:

This folder had grown to 56 GB and wiped out all of my remaining drive volume space.

guardrex avatar Feb 12 '22 14:02 guardrex

I agree we could do something to keep that folder from growing indefinitely. In the meantime, deleting the .docfx/download3 or .docfx/git6 folder is completely safe. They are just for caching.

yufeih avatar Feb 14 '22 02:02 yufeih

A caching design that isn't kept tidy by the app and at the same time escapes a Windows volume Disk Cleanup is a disaster. This design never should've been approved in the first place.

guardrex avatar Feb 14 '22 02:02 guardrex

I just cleared these folders again six weeks later ... 8 GB of DATA! 😩

Please do not let this slip off of the v3 roadmap.

guardrex avatar Mar 25 '22 12:03 guardrex

Thanks for the update! I have created an internal customer suggestion and route to the relevant team.

yufeih avatar Mar 28 '22 02:03 yufeih

Hiya! I just discovered this problem on my MacBook.

I'm running MacOS Monterey v 12.6.1 but the problem goes back to 2020 at least, so who knows what I was running then.

$ du -hs ~/.docfx/*
 46G	/Users/ekpgh/.docfx/downloads3
 31G	/Users/ekpgh/.docfx/git6

GrandPerspective showed 88GB of files in there this morning. I cleared out the files from 2020 and got almost 10 GB back. My oldest files were from October 2020.

Good to know I can just delete them all.

I don't directly use DocFX, but I use Visual Studio Code to work on documentation in Markdown. The cached files I see resemble the documentation repository I work in.

ekpgh avatar Nov 17 '22 21:11 ekpgh

Close as this is to be taken care of by internal Microsoft teams.

yufeih avatar Dec 15 '22 05:12 yufeih

Is there a Microsoft-internal way to trace this? I'm in Microsoft. I followed that work item link in the March 27 comment and it gives a 404 even though I'm logged in.

ekpgh avatar Dec 15 '22 16:12 ekpgh

@ekpgh This internal customer suggestion is still valid, there are likely some permission problems. Meanwhile you can contact misaso for internal inquiries. We are in the process of transitioning docfx to be an open source community driven tool, mslearn content will be supported by a dedicated internal tool. See this discussion comment for more details.

yufeih avatar Dec 16 '22 01:12 yufeih

Still happening as of Feb 2023, every few days I am deleting 12+GB of files from downloads3 and git6, most of it seems to be for repos that I don't use, like azure-docs-pr (I have used/cloned it in the past but I don't use it anymore)

steved0x avatar Feb 10 '23 14:02 steved0x

@guardrex - was there ever a solution to this? It continues to happen on my computer too.

flang-msft avatar Apr 14 '23 23:04 flang-msft

Not that I'm aware of. I've abandoned using docfx locally. On my latest PC build here, I never installed it, so I don't use it any longer. Therefore, problem solved! 😆 ... of course, not quite in the way that we were hoping.

guardrex avatar Apr 14 '23 23:04 guardrex

[laugh] Francis Langlois reacted to your message:


From: Luke Latham @.> Sent: Friday, April 14, 2023 11:37:44 PM To: dotnet/docfx @.> Cc: Francis Langlois @.>; Comment @.> Subject: Re: [dotnet/docfx] Insanely large DocFX folder (Issue #7885)

Not that I'm aware of. I've abandoned using docfx locally. On my latest PC build here, I never installed it, so I don't use it any longer. Therefore, problem solved! 😆 ... of course, not quite in the way that we were hoping.

— Reply to this email directly, view it on GitHubhttps://github.com/dotnet/docfx/issues/7885#issuecomment-1509393651, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATWH4S5DELP42XVVOQTBARTXBHNURANCNFSM5OG6YNUQ. You are receiving this because you commented.Message ID: @.***>

flang-msft avatar Apr 26 '23 03:04 flang-msft

My (fairly new but hardly beefy) computer is dying! Uninstalled docfx and cleared space, still 18 gb of downloads! Happy to know I can delete them. Maybe they will not regenerate since I uninstalled it?

v-thepet avatar Apr 10 '24 17:04 v-thepet

My (fairly new but hardly beefy) computer is dying! Uninstalled docfx and cleared space, still 18 gb of downloads! Happy to know I can delete them. Maybe they will not regenerate since I uninstalled it?

What did you uninstall?

flang-msft avatar Apr 11 '24 20:04 flang-msft