deleteRecord method

Future<XRPCResponse<EmptyData>> deleteRecord({
  1. required AtUri uri,
  2. String? swapRecordCid,
  3. String? swapCommitCid,
})

Implementation

Future<core.XRPCResponse<core.EmptyData>> deleteRecord({
  required core.AtUri uri,
  String? swapRecordCid,
  String? swapCommitCid,
}) async =>
    await _ctx.post<core.EmptyData>(
      ns.comAtprotoRepoDeleteRecord,
      body: {
        'repo': _ctx.session?.did ?? _ctx.oAuthSession?.sub,
        'collection': uri.collection.toString(),
        'rkey': uri.rkey,
        'swapRecord': swapRecordCid,
        'swapCommit': swapCommitCid
      },
    );