eraseDeployment method
Erase study deployment information cached locally on this phone.
Implementation
Future<void> eraseDeployment() async {
info("Erasing deployment cache for deployment '$studyDeploymentId'.");
try {
final name = await Settings().getCacheBasePath(studyDeploymentId!);
await File(name).delete(recursive: true);
} catch (exception) {
warning('Failed to delete deployment - $exception');
}
}