Endlessly deleting things that MAY or may not be used in your project is no easy task - especially if time is of the essence...good thing I made this tool that does it for you!
Essentially this code identifies and deletes unused assets from a specified folder by checking if each asset has any references. If an asset has no dependencies, it is deleted and logged in the console.
Just a screenshot highlighting how the code informs the end user what items were deleted specifically.
Here I added another simple UI and included it with the other widgets I had created from before.
I'm sure this code will come in handy when trying to package a project for deliverance!
Python to Unreal Documentation: https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/?application_version=5.4