Removing a child from Scrollbox

Hi guys, thing is i have some widgets inside a scrollbox, each widget has a delete button, i want to destroy that widget and remove it from the scrollbox but i cant seem to figure it out.

Is there a way to use Events between childs and parents?

Well i just figured it out myself, i just created some events in the widget and set the corresponding index to the widget when created, then when the delete funcion was called, an event go through the scroll box and got the corresponding index and that done the job.