Thank you for the tips on setting the life of the opponents, but I do not know why I still have problems with removing the widget when the enemy character dies, everything is done correctly but the widget still remains.
Can you please use the reference you setted and not the return value directly, also IsValid node can be a nice implementation for prevent errors deleting one thing that doesn’t exist yet or already exist.
And If you’re creating/destroying the widget inside the enemy actor blueprint you need to remove from viewport before you destroy the enemy or that reference will be always empty, if you destroy the enemy and then remove the health bar the reference of the widget will not exist anymore because the enemy actor doesn’t exist;
I have solved the problem though but I do not know if it’s the right way. Before widget I try remove from AI character when HP is 0 or lower but without effect.
Now in widget enemy I set event tick check if enemy character has any health point, if not widget is destroyed and this is working fine.