This version of the documentation is archived and no longer supported. To upgrade your 6.0 deployment, see the MongoDB 7.0 upgrade procedures.
db.resetError()Removed in MongoDB 5.0.
Provides a wrapper around the
resetErrorcommand (also removed in MongoDB 5.0).