var moe = MoECordova.init(YOUR_WORKSPACE_ID); moe.deleteUser().then(result =>//add your code to handle the callbackconsole.log("User Deletion Result",result.toString())).catch(error =>//add your code to handle the Errorconsole.error("Error while Deleting User",error.toString()));