For removing a panel, either call panel(0,0,0,0), or just select a different script.