Delete User From MoEngage Server 8.6.0
info

Note

This API is supported from react-native-moengage version 8.6.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, where you will get an instance of UserDeletionData.

TypeScript
import ReactMoE from 'react-native-moengage';
      
// Below method will return an instance of UserDeletionData
const userDeletionData = await ReactMoE.deleteUser();

UserDeletionData

Below is the model returned on calling the API/method.

TypeScript

/**
 * Delete User State Data while deleting the user from MoEngage SDK
 * @since 8.6.0
 */
class UserDeletionData {

    /**
     * Account Data, instance of { MoEAccountMeta }
     * @since 8.6.0
     */
    accountMeta: MoEAccountMeta;

    /**
     * User State, true if user delete succeeded else false
     * @since 8.6.0
     */
    isSuccess: boolean;
}

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?