# Deleting folder almost freezes program

**URL:** <https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176>\
**Category:** Community & Industry Discussion\
**Tags:** folder, delete, files, freeze, unreal-engine, question\
**Created:** [January 7, 2017, 1:26pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176 "2017-01-07T13:26:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrimsonHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrimsonHawk](https://forums.unrealengine.com/u/CrimsonHawk)\
**Post date:** [January 7, 2017, 1:26pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/1 "2017-01-07T13:26:22Z")

</div>

I was trying to delete InfinityBladeEffects folder from the engine. First I shut down the engine from Task Manager cause I thought it froze. But on the second try I left it to go for several minutes, and only then became responsive again, and started slowly deleting assets one by one.

![121195-0.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/2/7e2e92a76ca29088416f8ae73a7bf8393c632def.png)

What causes this huge unresponsiveness for a long time, and why is deleting files so slow? (even if it’s a big folder)

(Not sure if it should be in the Bug Reports topic or where)

---

<div class="post-metadata">

**Author:** ![CrimsonHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrimsonHawk](https://forums.unrealengine.com/u/CrimsonHawk)\
**Post date:** [January 7, 2017, 1:35pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/2 "2017-01-07T13:35:25Z")

</div>

\*The slow one by one was only to process before “Are you sure…” question. The actual removal process was at quite acceptable rate, but with jumping font height.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 10, 2017, 7:03pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/3 "2017-01-10T19:03:12Z")

</div>

Hey CrimsonHawk,

I believe that the reason your editor is hanging when you’re attempting to delete that folder is definitely due to the size of the folder and the files contained within. I’d recommend deleting the folder from Windows Explorer using your project directory in order to avoid the in-editor hang. This goes for all large folder removal.

Let me know if you have further questions regarding this.

Have a great day

---

<div class="post-metadata">

**Author:** ![Xerdi1296](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xerdi1296](https://forums.unrealengine.com/u/Xerdi1296)\
**Post date:** [November 7, 2017, 2:09pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/4 "2017-11-07T14:09:59Z")

</div>

Hello. I had the same problem. I wanted to delete one folder from kite demo folder in ue4 browser content. It froze the editor. After that i deleted the folder outside the editor through the windows explorer. After I did that, I tried to package my game for windows ant my pc froze because of missing files. Is there any solution for this problem?

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 8, 2017, 8:21pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/5 "2017-11-08T20:21:55Z")

</div>

If you have references to those files still existing in the project, it could cause some issues, I recommend making sure you’ve removed all references to the assets that you’ve deleted.

Also, I recommend checking your logs to see if there are any errors coming up while your packaging.

---

<div class="post-metadata">

**Author:** ![Xerdi1296](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xerdi1296](https://forums.unrealengine.com/u/Xerdi1296)\
**Post date:** [November 8, 2017, 10:15pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/6 "2017-11-08T22:15:56Z")

</div>

Ok. Tkanks for help. How do I check for references to the deleted assets in UE4 editor?

---

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [November 8, 2017, 11:15pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/7 "2017-11-08T23:15:53Z")

</div>

Select file or files on content browser, right mouse / reference viewer.

When you starting with UE, you will import a lot of assets just for test. Don’t do it in game project, serious work project. For test import to clean project, check what you really need for your game project, and migrate only what you really want. Maybe firstly reduce texture sizes for example. Instead You will never clean up mess in game files and it will load forever. Just from my experience.

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1223962_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [April 16, 2018, 7:11pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/8 "2018-04-16T19:11:03Z")

</div>

However, even deleting single textures/meshes/materials etc cause the editor to freeze and become unresponsive for about 10-15 minutes if your project has a large file size. Additional, after deletion finished the auto-save features kicks in, adding another minute where you cannot work.

This is a long standing issue, which is really impacting workflow since especially with large projects you aim to get rid of overhead, but cleanup process is so slow that you think twice before trying to delete stuff.

Also, deleting closes all open windows

> **[Deleting an asset closes all open windows.](https://forums.unrealengine.com/questions/232708/deleting-an-asset-closes-all-open-windows.html)**
>
> When i delete an asset it closes all open editor windows. It’s kinda anoing since i am losing my session and i have to find the assets again.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 28, 2018, 3:01pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/9 "2018-04-28T15:01:25Z")

</div>

Hey unit23,

If you’re still having issues with this, please submit a report using our new bug submission form and we will follow up with you: [https://epicsupport.force.com/unrealstudio/s/](https://epicsupport.force.com/unrealstudio/s/)

Thanks,

Sean

---

<div class="post-metadata">

**Author:** ![melmass](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/melmass/32/539417_2.png) [@melmass](https://forums.unrealengine.com/u/melmass)\
**Post date:** [June 15, 2019, 5:33pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/10 "2019-06-15T17:33:08Z")

</div>

I think the official answer should be rephrased to:

The reason why deletion is so slow in UE4 is that **it loads all the assets you are deleting** to check for their dependencies across your entire project.  
You usually want to rely on that if you are unsure how the content of the folder was used across the project.  
But sometimes as it’s your case you know for sure. Then the fastest way is to close the editor and delete the folder manually from your OS.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7fdb4a891](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7fdb4a891](https://forums.unrealengine.com/u/anonymous_user_7fdb4a891)\
**Post date:** [April 25, 2021, 4:55am UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/11 "2021-04-25T04:55:47Z")

</div>

when your about to delete something from your content folder  
It shouldn’t referenced to anything in your project  
sometimes you already deleted that asset in your map but it still is in your **undo history**  
this will cause freezing while deleting

the solution is very simple  
Just Clear your undo history first  
then delete that asset from your content folder

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [June 8, 2021, 5:23pm UTC](https://forums.unrealengine.com/t/deleting-folder-almost-freezes-program/381176/12 "2021-06-08T17:23:53Z")

</div>

How to clear undo history?
