deleteRecord method
Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.
https://atprotodart.com/docs/lexicons/com/atproto/repo/deleteRecord
Implementation
Future<XRPCResponse<DeleteRecordOutput>> deleteRecord({
String? repo,
required NSID collection,
required String rkey,
String? swapRecord,
String? swapCommit,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<DeleteRecordOutput>(
ns.comAtprotoRepoDeleteRecord,
headers: $headers,
body: {
'repo': repo ?? _ctx.repo,
'collection': collection.toString(),
'rkey': rkey,
if (swapRecord != null) 'swapRecord': swapRecord,
if (swapCommit != null) 'swapCommit': swapCommit,
...?$unknown,
},
to: const DeleteRecordOutputConverter().fromJson,
client: $client,
);