Remove unused assets from project

Would it be possible to have a feature that goes through and removes all unused assets? That would be awesome, thanks :3

2 Likes

+1 A nod for 10 characters.

There is a way to do this already but not automatically.

Create a new blank project. Then migrate the maps containing the assets you want to keep to that new blank project. That will leave behind any unused assets. I do this all the time and it works well to clean up project folders that have become bloated with unused or out of date assets.

5 Likes

Python scripting is perfect for this kind of operations.

Such script will do the job.

1 Like

there is a plugin on the marketplace that does this

aqkotz, what’s the plugin name u mentioned above?

I made a plugin that does exactly what you’re asking for (might be what aqkotz is talking about)

Hope it helps

2 Likes

Btw it’s part of the march sale at half price
Check it out

Doesn’t work all the time. References to MyCustomGameInstance got all messed up.

This topic is years old, we have a really good solution now. Use GitHub - ashe23/ProjectCleaner: UE4 plugin for managing all unused assets and empty folders in pro

1 Like

Thank you for the reply!
I’ll check it out!

Moth Doctor, would there be any way to have this script support soft references? I ran a dry run of it in my project but it flagged a lot of files that are only soft referenced.