(Unsolved) Deleting enemy's charge up bar after it dies

In my game, I have an enemy that charges up an attack before firing, signaled by a bar above it.
when the bar is filled up, the enemy switches to an attack animation.


However, when you defeat the enemy, it gets deleted, but the bar stays, but I want it to be deleted when the enemy dies.

I tried “linking” the two objects together, but I don’t think i’m doing this right…

how do I do this???

Delete both at the same time
And you need repeat for each

Like this?

when you say repeat for each, do you mean duplicating these events but swapping the objects in the “Take into account” event? Bar linked to enemy → Enemy Linked to bar

I meant repeat for each object event type so what you did and what i had in screenshot
This still don’t delete both?
And if not do it at least delete one of them?

It deletes the enemy, but not the charge up bar…

Did you remove your old logic for deleting enemy and bar?