Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I drop a collection in mongodb?



How do I drop a collection in mongodb?..

Answer / Yogesh Singh Garbyal

The command to drop a collection in MongoDB is 'db.collectionName.drop()'. Replace 'collectionName' with the name of the collection you want to drop.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

Is mongodb a relational database?

1 Answers  


Which are the different languages supported by mongodb?

1 Answers  


What is the role of use command?

1 Answers  


What kind of database is mongodb?

1 Answers  


When was mongodb founded and why it is called mongodb?

1 Answers  


What is the use of a namespace in mongodb?

1 Answers  


What is the master or primary key in mongodb?

1 Answers  


What are the difference between sql and mongodb? Explain

1 Answers  


How does mongodb provide consistency?

1 Answers  


I am getting error cannot overwrite model once compiled mongoose, how to fix it?

1 Answers  


How do you configure to cache size for mmapv1 in mongodb?

1 Answers  


Why should we use mongodb?

1 Answers  


Categories