Remove an index from a collection
Rename an existing collection
Delete the entire database
Remove an entire collection
db.users.drop()
Removes the entire collection from the database. Useful for cleanup or resetting data.
Drop orders collection
db.orders.drop()
Add a single document to a collection
Retrieve all documents from a collection
Delete a single document from a collection