# Useage of delete \<function name\>

**URL:** <https://forum.kirupa.com/t/useage-of-delete-function-name/223220>\
**Category:** flash\
**Created:** [April 20, 2007, 11:28am UTC](https://forum.kirupa.com/t/useage-of-delete-function-name/223220 "2007-04-20T11:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shellbryson](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@shellbryson](https://forum.kirupa.com/u/shellbryson)\
**Post date:** [April 20, 2007, 11:28am UTC](https://forum.kirupa.com/t/useage-of-delete-function-name/223220/1 "2007-04-20T11:28:03Z")

</div>

I’m using delete to remove a function, but I’m wondering how clean it is? Is it likely to cause issues if I have the following:

```auto

up_btn.onRollOver = function() {
    blog_mc.onEnterFrame = function() {
        this._y +=10;
    }
}

up_btn.onRollOut = function() {
    delete blog_mc.onEnterFrame;

}

```

It works fine, but the rapid creation and deletion of functions makes me… twitchy 🙂
