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
Before deleting a predictor, let’s list all the available predictors using thedb.predictors.find()
method.
db.predictors.deleteOne()
method drops the model collection called home_rentals_model
.