> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete User From MoEngage Server

<Info>
  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.
</Info>

To delete the current user from the MoEngage server use ***deleteUser()*** method as shown below, where you will get an instance of ***UserDeletionData***.

<CodeGroup>
  ```javascript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import ReactMoE from 'react-native-moengage';
        
  // Below method will return an instance of UserDeletionData
  const userDeletionData = await ReactMoE.deleteUser();
  ```
</CodeGroup>

## UserDeletionData

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

<CodeGroup>
  ```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}

  /**
   * 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;
  }
  ```
</CodeGroup>
