# After building unreal engine from source, the folder is now 168GB. What can i delete?

**URL:** <https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560>\
**Category:** Platform & Builds\
**Tags:** MAC-OS-X, unreal-engine, UE5-0, question\
**Created:** [September 2, 2022, 5:32am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560 "2022-09-02T05:32:05Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenVolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenVolo](https://forums.unrealengine.com/u/BenVolo)\
**Post date:** [September 2, 2022, 5:32am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/1 "2022-09-02T05:32:05Z")

</div>

I have already deleted the .git folder but there is no way this 168gb is just the engine itself. What unnecessary parts can i delete to free up some memory from this monster of an install?

btw i built from the ue5-main branch so its technically 5.1 i think

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [September 2, 2022, 5:43am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/2 "2022-09-02T05:43:48Z")

</div>

All the pdbs can be safely deleted - they are huge.

---

<div class="post-metadata">

**Author:** ![BenVolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenVolo](https://forums.unrealengine.com/u/BenVolo)\
**Post date:** [September 2, 2022, 5:56am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/3 "2022-09-02T05:56:08Z")

</div>

> [@Syedhs](#):
>
> pdbs

pdbs?

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [September 2, 2022, 6:09am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/4 "2022-09-02T06:09:24Z")

</div>

File \*.pdb. Search and kill them all.

---

<div class="post-metadata">

**Author:** ![BenVolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenVolo](https://forums.unrealengine.com/u/BenVolo)\
**Post date:** [September 2, 2022, 6:39am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/6 "2022-09-02T06:39:10Z")

</div>

ok. any folders in particular i can delete?

what about these?  
/Engine/Source?  
/Engine/Intermediate?  
/Engine/Plugins?  
/Engine/Binaries?

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [September 2, 2022, 6:47am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/7 "2022-09-02T06:47:03Z")

</div>

I am not sure about the rest - UE4 tend to recompile the whole thing (I dont understand) when even small CPP changes are detected. So if you delete those intermediate folders you may have to rebuilt which takes a long time. I dont have time to actually experimenting.

If I were you, it is suffice to delete just PDB. In my 4.27 source compile, PDB takes about 40GB space and the whole thing is about 155GB. Maybe better invest in new SSD, they are cheap nowadays.

---

<div class="post-metadata">

**Author:** ![Username0520](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/username0520/32/538954_2.png) [@Username0520](https://forums.unrealengine.com/u/Username0520)\
**Post date:** [September 2, 2022, 8:21am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/8 "2022-09-02T08:21:25Z")

</div>

I just delete Vault Cache, but it helps only if there are some imported materials, etc.

---

<div class="post-metadata">

**Author:** ![BenVolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenVolo](https://forums.unrealengine.com/u/BenVolo)\
**Post date:** [September 3, 2022, 3:11am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/9 "2022-09-03T03:11:13Z")

</div>

I deleted the intermediate folder and it spent literally all day rebuilding. used to be like 80gb now its 160. total install is now like 300gb. this sh\*t is ridiculous.

deleted .pdb, .dsym… What seems to be taking up the most space is these .cpp.o files but i have no idea if deleting them will break it. I’ve backed the whole thing up to a hard drive, so, fck it. I’m gonna start just deleting sh\*t and see what happens.

---

<div class="post-metadata">

**Author:** ![BenVolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenVolo](https://forums.unrealengine.com/u/BenVolo)\
**Post date:** [September 3, 2022, 3:18am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/10 "2022-09-03T03:18:24Z")

</div>

Ok i tried deleting the individual intermediate folders in the each of the plugins folders because the plugins folder alone is 130gb. did not help. they are now being rebuilt.

this ■■■■ happens every single time i try to add a single basically empty c++ class. i’m not even using these plugins! wtf is wrong with unreal engine???

---

<div class="post-metadata">

**Author:** ![BenVolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenVolo](https://forums.unrealengine.com/u/BenVolo)\
**Post date:** [September 4, 2022, 2:22am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/11 "2022-09-04T02:22:48Z")

</div>

tried deleting .o files. size of the installation goes down to about 70-80gb from 330gb which is more the expected size.

editor launches just fine, great. new project runs. add a new c++ class to the project? Recompiles. Doesn’t take all day like after deleting the intermediate files, takes like 10 minutes. Editor needs to be relaunched to see the changes.

Relaunch the editor… no wait. whoops. Editor won’t even open. Binary inside the editor has somehow deleted itself along with a ton of core dependencies. So even though it HAD all the files it needed to run just fine the moment compilation happens.

This is getting ridiculous. Epic you need to respond. Why is it so ■■■■ hard to build from source???

---

<div class="post-metadata">

**Author:** ![digitalDiver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@digitalDiver](https://forums.unrealengine.com/u/digitalDiver)\
**Post date:** [February 11, 2023, 3:46am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/12 "2023-02-11T03:46:36Z")

</div>

has anyone found a fix for this?

---

<div class="post-metadata">

**Author:** ![Hecking\_Heck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hecking\_Heck](https://forums.unrealengine.com/u/Hecking_Heck)\
**Post date:** [March 2, 2023, 4:03pm UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/13 "2023-03-02T16:03:29Z")

</div>

Any updates? Engine folder is currently sat at 256gb

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [March 14, 2023, 8:32pm UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/14 "2023-03-14T20:32:44Z")

</div>

I’m interested too!

Anyway, I think we can remove the folder \Engine\Intermediate\Build\Win64\x64

For the moment, I have deleted it and I can still open the engine, but it may break something else like packaging a game (I don’t know). Anyway, I have gained 112GB.

---

<div class="post-metadata">

**Author:** ![ourcreed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ourcreed](https://forums.unrealengine.com/u/ourcreed)\
**Post date:** [September 3, 2024, 12:14am UTC](https://forums.unrealengine.com/t/after-building-unreal-engine-from-source-the-folder-is-now-168gb-what-can-i-delete/639560/15 "2024-09-03T00:14:39Z")

</div>

Are you certain about deleting pdb files being safe? It’s over 91 GB in my build, and I’m worried I’ll have to rebuild engine if I delete them.
