How to delete related sub tables when item is deleted?

I thought that’s how it worked but I guess I’m doing something wrong.

I made a collection

and two items(called links here)that are connected to the collection

all the on delete for them is set to cascade

then I use an action to delete a collection

and it deletes the collection

but not the links(items)

any idea what I’m doing wrong?