deactivateAccount method
Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.
https://atprotodart.com/docs/lexicons/com/atproto/server/deactivateAccount
Implementation
Future<XRPCResponse<EmptyData>> deactivateAccount({
DateTime? deleteAfter,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<EmptyData>(
ns.comAtprotoServerDeactivateAccount,
headers: $headers,
body: {
if (deleteAfter != null) 'deleteAfter': iso8601(deleteAfter),
...?$unknown,
},
client: $client,
);