Syntax:
Db.collection-Name.drop();
Example:
>use mydb switched to db mydb >show collections mycol mycollection > |
Now drop collection by name,
>db.mycollection.drop() true > |
Again check the list
>show collections mycol > |
See above result, mycollection is missing....