removeStudyDeployments method

  1. @override
Future<Set<String>> removeStudyDeployments(
  1. Set<String> studyDeploymentIds
)
override

Remove study deployments with the given studyDeploymentIds. This also removes all data related to the study deployments.

Returns the IDs of study deployments which were removed (empty set if none were removed). IDs for which no study deployment exists are ignored.

Implementation

@override
Future<Set<String>> removeStudyDeployments(
    Set<String> studyDeploymentIds) async {
  Set<String> removedKeys = {};
  for (var key in studyDeploymentIds) {
    if (_repository.containsKey(key)) {
      _repository.remove(key);
      removedKeys.add(key);
    }
  }
  return removedKeys;
}