You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Event Handling > destroy

8.19 destroy

on.destroy()

This routine is called just before the script application is deleted. A script app is deleted when it is cut to the Clipboard and when the document that contains it is closed.

Introduced in platform.apiLevel = '1.0'