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

# Compliance

> Enable or disable data tracking and the MoEngage Flutter SDK from Dart.

Use the APIs below to control what the MoEngage SDK tracks, based on the consent a user has given.

## Enable or Disable Data Tracking

To stop the SDK from tracking custom events and user attributes, call `disableDataTracking()`.

<CodeGroup>
  ```dart Dart wrap theme={null}
  import 'package:moengage_flutter/moengage_flutter.dart';
  final MoEngageFlutter _moengagePlugin = MoEngageFlutter();

  _moengagePlugin.disableDataTracking();
  ```
</CodeGroup>

The SDK rejects all events and user attributes until you call `enableDataTracking()`. Data tracking is enabled by default.

<CodeGroup>
  ```dart Dart wrap theme={null}
  import 'package:moengage_flutter/moengage_flutter.dart';
  final MoEngageFlutter _moengagePlugin = MoEngageFlutter();

  _moengagePlugin.enableDataTracking();
  ```
</CodeGroup>

## Enable or Disable the SDK

To stop the SDK from tracking any user information or sending any data to MoEngage, call `disableSdk()`.

<CodeGroup>
  ```dart Dart wrap theme={null}
  import 'package:moengage_flutter/moengage_flutter.dart';
  final MoEngageFlutter _moengagePlugin = MoEngageFlutter();

  _moengagePlugin.disableSdk();
  ```
</CodeGroup>

All SDK APIs are non-operational until you call `enableSdk()`. The SDK is enabled by default, so call `enableSdk()` only if you disabled it earlier.

<CodeGroup>
  ```dart Dart wrap theme={null}
  import 'package:moengage_flutter/moengage_flutter.dart';
  final MoEngageFlutter _moengagePlugin = MoEngageFlutter();

  _moengagePlugin.enableSdk();
  ```
</CodeGroup>

## Delete User Data

To delete the current user's profile from the MoEngage server, refer to [Delete User From MoEngage Server](/docs/developer-guide/flutter-sdk/data-tracking/delete-user-from-moengage-server).
