Description

This method deletes an ML engine.

Syntax

Here is the syntax:

db.ml_engines.deleteOne({"name": "ml_engine_name"})

On execution, we get:

{
  acknowledged: true,
  deletedCount: 1
}

Example

Let’s delete an OpenAI engine created earlier.

db.ml_engines.deleteOne({"name": "openai_engine"})

On execution, we get:

{
  acknowledged: true,
  deletedCount: 1
}