delete

abstract suspend fun delete()

Permanently deletes this user from your Atlas App Services app.

If the user was deleted successfully on Atlas, the user state will be set to State.REMOVED and any local Realm files owned by the user will be deleted. If the server request fails, the local state will not be modified.

All user realms should be closed before calling this method.

Throws

if a consumer listening to App.authenticationChangeAsFlow is too slow consuming events.

if a failure occurred when communicating with App Services. See AppException for details.