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

Band Scurvy 225 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
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

Answer accepted by question author
Viorel 127.3K 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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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