How to delete an asset from Editor in C++?
but that leaves an empty asset behind (called 'NONE'). Any ideas how i could do this properly?
Took me some time to figure it out, but i think you can not instantly destroy/ delete Assets (or any subclass of UObject). Instead you can mark it as "pending kill" and the garbage collector will pick it up eventually. I did it by simply calling this function:
answered Aug 12 '19 at 02:27 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here