# Delete a function?

**URL:** <https://forum.kirupa.com/t/delete-a-function/164831>\
**Category:** Uncategorized\
**Created:** [October 5, 2005, 9:41am UTC](https://forum.kirupa.com/t/delete-a-function/164831 "2005-10-05T09:41:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [October 5, 2005, 9:41am UTC](https://forum.kirupa.com/t/delete-a-function/164831/1 "2005-10-05T09:41:24Z")

</div>

Hey there! 🙂

I was wondering if it’s possible to have a function on the first frame of my movie, let’s say like this:

```auto
onEnterFrame = function(){
restartTimer();
}

```

And then when the funtion has been executed, I wan’t to disable it (delete it)!?

Can this be done? :huh:
