Remove widget (floating healthbar)?

I can’t find a good way to remove a widget from an enemy AI after said AI has died. The cause of the issue is that I never actually do “add to viewport” so “remove from viewport” naturally won’t work.

Here’s a screenshot of how the widget is added to the enemy AI:

And here’s a picture of some of the solutions I have tried so far:

Now, destroy component does exactly what I want it to do, except it tends to explode and send my character flying (fixed by turning off collisions), but this is not a good way to do things. Anyone have any idea how to get rid of this?

Should note that in the first picture, the “Healthbar” is the healthbar widget component:

266718-widget-issue-3.png

Came up with a fairly simple solution myself:

Since I destroy the actor after x seconds and it’s just a UI element I don’t actually need to remove it, I just need to hide it until it gets destroyed along with the rest of the AI. Just leaving this here in case anyone runs across the same problem.

Figured I might as well include the entire death sequence I have right now just in case anyone doing the same is running into problems:

So what this does is, it sets the character to not alive (which prevents the AI tick from triggering any action), it then hides the healthbar, it ragdolls the character mesh and removes the collision from the capsule so it won’t hinder the player. After 15 seconds the dead enemy despawns.