You can destroy a widget by calling destroy on the widget (using if Tk::Exists is recommended):
$widget->destroy if Tk::Exists($widget);
If the widget is a parent of any other widgets, the other widgets are destroyed as well.
Copyright © 2002 O'Reilly & Associates. All rights reserved.