Docs Menu
MongoDB Documentation
MongoDB Manual
Select a version
Introduction
MongoDB Shell (mongosh)
MongoDB CRUD Operations
Aggregation Operations
Data Models
Transactions
Indexes
Security
Change Streams
Replication
Sharding
Administration
Storage
Frequently Asked Questions
Reference
Operators
Database Commands
mongosh
Methods
Legacy
mongo
Shell
Configure the
mongo
Shell
Access the
mongo
Shell Help
Write Scripts for the
mongo
Shell
Data Types in the Legacy
mongo
Shell
Native Methods in the Legacy Shell
cat()
cd()
copyDbpath()
getHostName()
getMemInfo()
hostname()
isInteractive()
listFiles()
load()
ls()
md5sumFile()
mkdir()
pwd()
quit()
removeFile()
resetDbpath()
sleep()
setVerboseShell()
version()
_isWindows()
_rand()
mongo
Shell Quick Reference
MongoDB Package Components
Configuration File Options
MongoDB Server Parameters
MongoDB Limits and Thresholds
Explain Results
System Collections
Connection String URI Format
Collation
MongoDB Wire Protocol
Log Messages
Exit Codes and Statuses
Glossary
Default MongoDB Port
Default MongoDB Read Concerns/Write Concerns
Server Sessions
Stable API
Release Notes
Technical Support
Docs Home
→
MongoDB Manual
resetDbpath()
This version of the documentation is archived and no longer supported. View the
current documentation
to learn how to
upgrade your version of MongoDB server
.
resetDbpath()
For internal use.
←
removeFile()
sleep()
→
Share Feedback