# Working with removeChild();

**URL:** <https://forum.kirupa.com/t/working-with-removechild/243232>\
**Category:** flash\
**Created:** [November 4, 2007, 9:02pm UTC](https://forum.kirupa.com/t/working-with-removechild/243232 "2007-11-04T21:02:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StridBR](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@StridBR](https://forum.kirupa.com/u/StridBR)\
**Post date:** [November 4, 2007, 9:02pm UTC](https://forum.kirupa.com/t/working-with-removechild/243232/1 "2007-11-04T21:02:24Z")

</div>

```auto
if(y > 0 ){
    parent.removeChild(this);
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    delete this;
    trace(this);
   }

```

delete doesnt work

trace returns object
