The db.predictors.deleteOne() Method
Description
Thedb.predictors.deleteOne() method deletes an ML model specified in its argument.
Syntax
Here is the syntax:| Name | Description |
|---|---|
name | Name of the model to be deleted. |
Example
Listing All the Predictors
Before deleting a predictor, let’s list all the available predictors using thedb.predictors.find() method.
Dropping a Predictor
Thedb.predictors.deleteOne() method drops the model collection called
home_rentals_model.