delete unuseful messages