# Delete instruction

**URL:** <https://forum.kirupa.com/t/delete-instruction/276229>\
**Category:** Uncategorized\
**Created:** [November 24, 2008, 5:53pm UTC](https://forum.kirupa.com/t/delete-instruction/276229 "2008-11-24T17:53:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcogiannini](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@marcogiannini](https://forum.kirupa.com/u/marcogiannini)\
**Post date:** [November 24, 2008, 5:53pm UTC](https://forum.kirupa.com/t/delete-instruction/276229/1 "2008-11-24T17:53:03Z")

</div>

hi all,  
I’ve got a minor issue with a non-functioning delete instruction in a onEnterFrame statement. Here’s the code

this.onEnterFrame = function() {  
if ((\_root.gira1 == 1) && (\_root.gira2 == 1) && (\_root.gira3 == 1) && (\_root.gira4 == 1)) {  
gotoAndPlay(“action”);  
delete this [“onEnterFrame”];  
\_root.tunnelaperto = 1;  
}  
}

what you suggest? Till now “delete this [“onEnterFrame”]” always went allright… ☹

thx in advance
