Skip to main content
This API is supported from capacitor-moengage-core version 3.1.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
import { MoECapacitorCore } from 'capacitor-moengage-core'
      
MoECapacitorCore.deleteUser({appId: "YOUR_WORKSPACE_ID"}, (userDeletionData) = {
  // add your code to handle the callback.
  console.log(this.tag + " deleteUser(): workspaceId: " + userDeletionData.accountMeta.appId + " isSuccess=" + userDeletionData.isSuccess)
    })