deactivateAccount

abstract suspend fun deactivateAccount(eraseAllData: Boolean, userInteractiveAuthInterceptor: UserInteractiveAuthInterceptor)

Deactivate the account.

This will make your account permanently unusable. You will not be able to log in, and no one will be able to re-register the same user ID. This will cause your account to leave all rooms it is participating in, and it will remove your account details from your identity server. This action is irreversible.\n\nDeactivating your account does not by default cause us to forget messages you have sent. If you would like us to forget your messages, please tick the box below.

Message visibility in Matrix is similar to email. Our forgetting your messages means that messages you have sent will not be shared with any new or unregistered users, but registered users who already have access to these messages will still have access to their copy.

Parameters

eraseAllData

set to true to forget all messages that have been sent. Warning: this will cause future users to see an incomplete view of conversations

userInteractiveAuthInterceptor