eraseDeployment method
Erase the SmartphoneDeployment with the deploymentId
from local cache.
Implementation
Future<void> eraseDeployment(String deploymentId) async {
info("$runtimeType - Erasing deployment, deploymentId: $deploymentId");
try {
await database?.delete(
DEPLOYMENT_TABLE_NAME,
where: '$STUDY_DEPLOYMENT_ID_COLUMN = ?',
whereArgs: [deploymentId],
);
} catch (exception) {
warning('$runtimeType - Failed to erase deployment - $exception');
}
}