info |
Note This API is supported from cordova-moengage-core version 8.4.0 and is only available for the Android platform and is a no-operation for other platforms. |
To delete the current user from the MoEngage server use deleteUser() method as shown below
var moe = MoECordova.init(YOUR_Workspace_ID);
moe.deleteUser().then(result =>
//add your code to handle the callback
console.log("User Deletion Result",result.toString())
).catch(error =>
//add your code to handle the Error
console.error("Error while Deleting User",error.toString())
);