diff --git a/src/ml_engines/ml_engine.ts b/src/ml_engines/ml_engine.ts index 4cdbfaa..bf96863 100644 --- a/src/ml_engines/ml_engine.ts +++ b/src/ml_engines/ml_engine.ts @@ -35,6 +35,16 @@ export default class MLEngine { this.connection_data = connection_data; } + /** + * Removes a specified mlEngine by its name. + * @param {string} mlEngineName - The name of the mlEngine to remove. + * @returns {Promise} - Resolves when the mlEngine is successfully removed. + * @throws {MindsDbError} - Something went wrong deleting the mlEngine. + */ + async remove(mlEngineName: string): Promise { + await this.mlEnginesApiClient.deleteMLEngine(mlEngineName); + } + /** Deletes this mlEngine. * @throws {MindsDbError} - Something went wrong deleting the mlEngine. */