comAtprotoSpaceClearRecords function

Future<XRPCResponse<EmptyData>> comAtprotoSpaceClearRecords({
  1. required String space,
  2. required String repo,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Delete all records in the authenticated account's space repo. In the space authority's repo, records published from the space's configuration (such as its policy) are kept. Requires auth, implemented by PDS.

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoSpaceClearRecords({
  required String space,
  required String repo,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoSpaceClearRecords,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'space': space, 'repo': repo},
);