remove obsolete messages