How to get Foliage Type from Instanced Foliage Actor

I am writing a script that deletes unused Assets in a project, I want to access the foliage Assets that are used by the instance foliage actor, I am able to access the foliage instance static mesh component but not the foliage type. Does anyone know how to do this?

Preformatted text

Processing: foliage_sc.png…

Think you need to create a function in C++ to get that, as you only get access to same functions as blueprint would get in Python.

I suspected that, if I can get just the name of the object that would work too