so I expect code like ( if I get your intention )
```
std::map<std::string, YExternalWidgets *>::iterator it;
for (it= YExternalWidgets::_externalWidgets.begin(); it != YExternalWidgets::_externalWidgets.end(); it++)
{
  yuiMilestone() << "Shutting down " << it->first << " External Widgets" << std::endl;
  delete it->second;
}

YExternalWidgets::_externalWidgets.clear();
```