Check out example codes for "mango to delete a collection". It will help you in understanding the concepts better.

Code Example 1

# To remove all documents in a collection, call the remove method with an empty query
# document {}. The following operation deletes all documents from the bios collection:

db.bios.remove( { } )

Code Example 2

db.CollectionName.drop()

Code Example 3

db.bios.remove( { } )

Learn ReactJs, React Native from akashmittal.com