Added message deletion logic