# AS3 remove objects

**URL:** https://forum.kirupa.com/t/as3-remove-objects/322657
**Category:** flash
**Created:** [May 29, 2011, 2:10am UTC](https://forum.kirupa.com/t/as3-remove-objects/322657 "2011-05-29T02:10:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pff](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@pff](https://forum.kirupa.com/u/pff)
#### Post date: [May 29, 2011, 2:10am UTC](https://forum.kirupa.com/t/as3-remove-objects/322657/1 "2011-05-29T02:10:04Z")

</div>

currently i am removing objects when they reach the edge of the screen with

```auto
        public function mover(e:Event) {
            this.y += speed;
            if (this.y == stage.stageHeight - this.height)
            {
                
                this.parent.removeChild(this);
            }
        }

```

i understand this does not delete the object?  
without removing event listeners before removing the object the error log fills up, i believe its due to the stage isnt there after its removed.  
this makes me think that removechild does not delete the object? i will be creating and deleting many objects during runtime, and i dont want to slow down or use too much memory, so i would like to know how to properly free up the object thanks.
