Better deleteMessage implementation (WIP)

I have doubts on line 35; I’m doubting it does what I want it to do.
I’m pretty sure about the rest.