separated module for message deletion