# Deleting onPageStartup script

**URL:** <https://forum.inductiveautomation.com/t/deleting-onpagestartup-script/60990>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 21, 2022, 7:37am UTC](https://forum.inductiveautomation.com/t/deleting-onpagestartup-script/60990 "2022-06-21T07:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 21, 2022, 7:37am UTC](https://forum.inductiveautomation.com/t/deleting-onpagestartup-script/60990/1 "2022-06-21T07:37:08Z")

</div>

![onPageStartup](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/c/bc6b8e180229bae937f6b8d9aaf3876f167c507c.png)

There doesn’t seem to be a way of deleting line 1 on the _Project | Session Events_ dialog once an event has been created. Does this matter? Is a Python `pass` required on line 2 to suppress errors?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 21, 2022, 2:45pm UTC](https://forum.inductiveautomation.com/t/deleting-onpagestartup-script/60990/2 "2022-06-21T14:45:02Z")

</div>

Hm. It does seem odd that the script conveys a warning, though in the strictest sense it is correct. I think `pass` is perfectly acceptable here, though providing nothing and saving your changes while that “error” indication is present should not impact your project in any way. I’ll see what we can do about that warning. As for deleting line 1, that line needs to stay because the internal hooks are expecting that function name. If you delete it and try to replace it with something else nothing will happen. It’s safer for users if we just make that line non-editable.
