drop the collection in mongodb code example Example: drop a collection in mongodb db.mycollection.drop()