Deletes a collection.
Last updated 2 years ago
db.deleteCollection('users'); // true
Parameter
Description
name
String
The name of the collection
Returns
Boolean
Whether the collection was successfully deleted or not