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.