Win32::GUI::DestroyWindow($Window->{mycheckbox}{-handle}); delete $Window->{mycheckbox}; #use hashref syntax instead of autoloaded methods