The OnDeleteScript event can be implemented by a script add-in to receive notification when (if) it's deleted by the user via the Scripts management user interface. You might want to use this to cleanup any data files your script has created.
| Method Name: | OnDeleteScript |
|---|---|
Argument Type: |
|
Return Type: |
<none> |
Description: |
The DeleteScriptData.file property contains the full pathname of the script that's being deleted. |