removeMessages skeleton TODO: think in how to implement it