delete unneccessaru messages