# Deleting Element from as Associative Array

**URL:** <https://forum.kirupa.com/t/deleting-element-from-as-associative-array/74361>\
**Category:** flash\
**Created:** [December 28, 2004, 1:03pm UTC](https://forum.kirupa.com/t/deleting-element-from-as-associative-array/74361 "2004-12-28T13:03:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![administry](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@administry](https://forum.kirupa.com/u/administry)\
**Post date:** [December 28, 2004, 1:03pm UTC](https://forum.kirupa.com/t/deleting-element-from-as-associative-array/74361/1 "2004-12-28T13:03:12Z")

</div>

**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**
