deleteAccount method

Future<XRPCResponse<EmptyData>> deleteAccount({
  1. required String did,
  2. required String password,
  3. required String token,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. PostClient? $client,
})

Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth.

https://atprotodart.com/docs/lexicons/com/atproto/server/deleteAccount

Implementation

Future<XRPCResponse<EmptyData>> deleteAccount({
  required String did,
  required String password,
  required String token,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoServerDeleteAccount,
      headers: $headers,
      body: {
        'did': did,
        'password': password,
        'token': token,
        ...?$unknown,
      },
      client: $client,
    );