Command
db.users.drop()
Explanation
Removes the entire collection from the database. Useful for cleanup or resetting data.
Examples
Drop orders collection
db.orders.drop()
db.users.drop()
Removes the entire collection from the database. Useful for cleanup or resetting data.
Drop orders collection
db.orders.drop()