proper deletion of messages from hashmap instead of just recent list[id]