Skip to main content
This API is supported in MoEngage Unity Package starting 3.1.0 and is only available for the Android platform. Download the assets from here.
To delete the current user from the MoEngage server use the DeleteUser(UserDeletionResponseDelegate) method as shown below, UserDeletionResponseDelegateis a delegate function with UserDeletionDataparameter, which is triggered when the user deletion is completed.
using MoEngage;
public void DeleteUser() {
  Debug.Log("DeleteUser() : ");
  MoEngageClient.DeleteUser(MyUserDeletionResponseDelegate);
}
//Delegate function
public void MyUserDeletionResponseDelegate(UserDeletionData data) {
  Debug.Log("MyUserDeletionResponseDelegate() : isSuccess: " + data.isSuccess);
}