Skip to main content

Posts

Showing posts with the label Mongodb drop remove collection

3 Best Ways to DROP Remove MongoDB Collection [DROP]

“How to “ DROP ” collection from database MongoDB”? In this section, I am going to describes “ DROP”  or DELETE collection in MongoDB. Below version 3.4, does not provide any user interface like SQL Server but  MongoDB 3.4  solve this problem with help of “ Robomongo Management Tool” . As per my understanding, it is a great achievement of MongoDB to provide us “Robomongo Management Tool”. You can  download  Robomongo  MongoDB tool and install Robomongo in your machine and start to Create, Rename and DROP MongoDB database, collections, functions and Users. In the MongoDB, the command “ db.collection.drop() ” is used to DROP a database collection. Syntax : - [ db.collection_name.drop() ] The “ DROP ” method will returns true, if successfully dropped! Otherwise return false! 3 Ways to “DROP” MongoDB Database:- 1.       “Use” of Robomongo Management Tool 2.       “Use...