---
description: This event gets executed upon the script being unloaded.
---

# Unload event

This event will be called upon the **script unload / finalization of a `Script` object.** This event **does not** have any parameter&#x73;**.**

```javascript
script.handle("onUnload", function () {
    // finalize (unregister) variables / hooks / modules / commands here
}
```
