What is the logic behind delete other-end chat?

I am design a social network site. One of the most important feature of site is chatting.

But I have no idea that should I give feature to delete messages including other end too. (Eg: If A send a message to B, should I allow A to delete just his own message or even with B message).

Let say two sample popular apps.

  1. WhatsApp : When you send a message, you can delete message even the other-end...

  2. Facebook : You can delete only your own message. Even you delete message, still other end can read it.

Above both companies handled by same company. But they use two different way.

What is the logic behind it?