Microsoft C++(Visual Studio) takes up space on C drive

Band Scurvy 0 Reputation points
2025-08-02T11:58:21.1166667+00:00

Hi, when I use Microsoft C++ (Visual Studio), after a while it takes up space on drive C. Is there any way to clean it up?

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 123.6K Reputation points
    2025-08-02T13:10:14.31+00:00

    If the space is occupied by projects, maybe it is possible to move them to another disk. (The default location is usually C:\Users\XXX\source\repos and can be changed in Visual Studio, TOOLS menu, Options, Projects and Solutions, Locations).

    There is a method to remove the generated files that appear after compilation: load the solution, right-click the solution in Solution Explorer, then select Clean Solution.

    These files can be also deleted carefully manually (subfolders like Debug, Release, x64, ARM). Make sure to not delete important, source files. Sometimes the *.ipch and *.pch files are large and can be deleted.


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.