deleteModel static method

Future<void> deleteModel(
  1. String modelId
)

Delete a downloaded model to free up space

Implementation

static Future<void> deleteModel(String modelId) async {
  try {
    await _channel.invokeMethod('deleteModel', {
      'modelId': modelId,
    });
  } on PlatformException catch (e) {
    throw Exception('Failed to delete model: ${e.message}');
  }
}