Can we delete all chat data if user account is deleted in the app using sendbird sdk? Is there any mandate to keep the chat data even on account deletion in the app?

Can we delete all chat data if user account is deleted in the app using sendbird sdk? Is there any mandate to keep the chat data even on account deletion in the app?

Hi,
Basically, chat messages are managed by each channel, not by a user.
So when a user is deleted, chat messages are not deleted.

ex) When user-A has 3 channels below, if user-A is deleted, 3 channels’ messages should not be deleted.

  • channel-X with user-B, user-C
  • channel-Y with user-D, user-E, user-F
  • channel-Z with user-G, user-H, user-I, user-J

If you want to delete a channel including its messages, you can do with groupChannel.delete().