delete method

Future<Response> delete()

Delete Account

Delete a currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. This is done to avoid deleted accounts being overtaken by new users with the same email address. Any user-related resources like documents or storage files should be deleted separately.

Implementation

Future<req.Response> delete() {
  final String path = '/account';

  final Map<String, dynamic> params = {};

  final Map<String, String> headers = {
    'content-type': 'application/json',
  };

  return client.call(HttpMethod.delete,
      path: path, params: params, headers: headers);
}