deleteDataSample method

  1. @override
Future<String?> deleteDataSample(
  1. String dataSampleId
)
override

Delete a DataSample by its id

Deletes the data sample identified by the provided unique dataSampleId.

Parameters:

  • String dataSampleId (required):

Implementation

@override
Future<String?> deleteDataSample(String dataSampleId) async {
  return (await deleteDataSamples([dataSampleId]))?.firstOrNull ?? (throw StateError("Couldn't delete data sample $dataSampleId"));
}