Nearby lessons

3 of 22

🗄️ MongoDB: Create & Drop Database and Collections

MongoDB provides commands to create, rename, and drop databases and collections. It also includes help commands to explore all available operations easily.

List all databases on the server

Example01
Loading editor…

Switch to or create a new database

Example02
Loading editor…

Delete the current database

Example03
Loading editor…

Create new collections

Example04
Loading editor…

Rename a collection

Example05
Loading editor…

Delete a collection

Example06
Loading editor…

Show available database operations

Example07
Loading editor…

Show available collection operations

Example08
Loading editor…

Finished this lesson?

Mark it as complete to track your progress and see technology completion stats.