Deleting folder almost freezes program

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

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)

*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.

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

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?

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.

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

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.

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

1 Like

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/

Thanks,

Sean

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.

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

How to clear undo history?

1 Like