remove dpm, and clear messages