pymongo.MongoClient.drop is a method in the Python pymongo library that allows a user to remove a specified database. This method is used to delete an entire database, along with all the collections/documents it contains. By calling this method, all the data and indexes associated with the database will be permanently removed. It is important to use this method cautiously as it cannot be undone, and all the data in the database will be lost.
Python MongoClient.drop - 50 examples found. These are the top rated real world Python examples of pymongo.MongoClient.drop extracted from open source projects. You can rate examples to help us improve the quality of examples.