wipeDatabase static method

Future<Map<String, Object?>> wipeDatabase(
  1. Client cloudApiClient, {
  2. required String projectId,
})

Implementation

static Future<Map<String, Object?>> wipeDatabase(
  final Client cloudApiClient, {
  required final String projectId,
}) async {
  try {
    await cloudApiClient.database.wipeDatabase(cloudCapsuleId: projectId);
  } on Exception catch (e, stackTrace) {
    throw FailureException.nested(e, stackTrace, 'Failed to wipe database');
  }

  return {'projectId': projectId};
}