How to dispose of a window ?

Hello,

Well...Again,I need help...I need to dispose of a window via script call.Anyone knows how to do that ?

Thanks in Advance !!
in Ace:

Simple, if you by any chance called a window on the map via script call:

@gold_window = Window_Gold.newor even in somewhere, you can always dispose it on a script call with this:

@gold_window.disposeJust make sure that the instance variable of the window you just called would be the once you would be calling its dispose method.
Wow.Thank you SoulPour777! I can finally complete my 31 line scriptlet !

Original thread: https://forums.rpgmakerweb.com/threads/how-to-dispose-of-a-window.30377/