remove obsolete dialogs