MongoLink`
MongoLink`

MongoDatabaseDrop

MongoDatabaseDrop[MongoDatabase[]]

completely removes the database MongoDatabase[].

Details

  • To use MongoDatabaseDrop, you first need to load MongoLink using Needs["MongoLink`"].
  • MongoDatabaseDrop corresponds to db.dropDatabase in the MongoDB manual.
  • Care should be taken when dropping a database, as it cannot be easily restored.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Connect to a client:

In[1]:=
Click for copyable input
Out[1]=

Connect to a database:

In[1]:=
Click for copyable input
Out[1]=

Delete the database and all its contents:

In[1]:=
Click for copyable input

See Also

MongoDatabase  MongoCollectionDrop

Tutorials