Is it safe to delete the ipch folder - precompiled headers?

I was browsing the folder for the application I'm working on, and noticed the ipch folder for my solution, which has two small projects that weighs about 90 MB +.

I found an article discussing the use of files, and wondered if they could be deleted. I would like the application size to be as small as possible. If I were to delete the folder, the application would remain in a safe and stable state?

Precompiled Headers

+54
visual-studio-2010
May 03 '10 at 10:33 a.m.
source share
4 answers

I managed to find a rather informative answer from the MSDN support forums:

I am not only a C # moderator, but also a C ++ user:} The ipch directory and many, many new files generated by the compiler can be safely deleted. In fact, they should be removed (and probably have) for clean builds. I teach C ++ college class on my own, and this is what my students need.

1. In the solution folder, delete all bin, obj, ipch, debug, and release directories.

2.Remove any .suo files

3.Remove any .user files

4. Delete any .ncb files

5. Delete any .sbr files

6.Remove any. * log files (for VS 2010)

I had no problems following these steps.

(original and original message)

Update:

raphinesse is also related to the question , which states that . SDF can also be safely removed.

+78
May 04 '10 at 16:17
source share

My ipch folder bothered me and deleted it. When you open the project again, the ipch folder is recreated. It is executed as before.

+9
May 4, '10 at 14:20
source share

There are several files that Visual C ++ uses temporarily, which can be freely removed. Most of them will be automatically recreated the next time the project is loaded, and the rest will be restored the next time the project is created.

I found the need to trim these files for recording and sharing on the Internet, so I wrote this utility to trim temporary files.

In the direct answer to the question, the answer is yes.

+3
Aug 26 2018-11-11T00:
source share

Yes, it is safe - everything that is in this gitignore file can be deleted: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

+1
Jun 13 '16 at 17:22
source share



All Articles