Visual Studio making thousands of files in %temp%

Eunsoo Jeon 36 Reputation points
2022-10-28T12:22:57.083+00:00

My %temp% is filled with temp files about VS, taking a few dozen GBs of my storage.
all of them are named with random characters like the ones below,
255108-image.png

and having the same content as this.
255075-image.png

are these files necessary for VS? How can I stop this?

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-10-28T13:48:03.653+00:00

    Hi @Eunsoo Jeon ,

    Welcome to Microsoft Q&A!

    The %temp% folder is used to store temporary files.
    For example, when you install the VS, the relevant installation logs will be recorded in the %temp% directory.
    You can clear the %temp% folder to free up storage space.

    In the second picture, it is Visual Studio Installer directory: C:\Program Files (x86)\Microsoft Visual Studio\Installer. It is not recommended to delete the folder.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.