Deleting Element from as Associative Array

Hi. So there is a problem now. Lets show some code:

x = new Array();
x[‘kamil’] = new Object();
x[‘kamil’].name = “kamil”;
x[‘madzia’] = new Object();
x[‘madzia’].name = “madzia”;

then, an output:

Variable _level0.x = [object #1, class ‘Array’] [
kamil:[object #2, class ‘Object’] {
name:“kamil”
},
madzia:[object #3, class ‘Object’] {
name:“madzia”
}
]

And now - QUESTION:
How to remove any element from that array when instead of indexes we have names; such as kamil or madzia.
pop, shift, slice, splice and so on… dont work at all.

Regards,
Kamil