Delete A User's Account
Deleting a User Account
Overview
The delete method in the b.well SDK is a critical function that allows for the deletion of a user's account and all associated user data.
Method Signature
suspend fun delete(): OperationOutcomeOperationOutcome: Represents the outcome of the account deletion operation.
Example Usage
To delete a user's account, simply call the delete method. It does not require any parameters:
suspend fun deleteUserAccount() {
val operationOutcome = bwellSdk.delete()
operationOutcome.let {
when (it.status) {
Status.SUCCESS -> {
// Account deleted successfully
}
else -> {
// Handle unsuccessful deletion
}
}
}
}This example demonstrates how to invoke the delete method to remove a user's account and handle the response.
Updated about 2 months ago
