Pak Jiddat - Innovative Software Services

Read: In the name of thy Lord Who createth, Createth man from a clot. Read: And thy Lord is the Most Bounteous, Who teacheth by the pen, Teacheth man that which he knew not. Nay, but verily man is rebellious That he thinketh himself independent!. Lo! unto thy Lord is the return. (Sura Alalaq 96:8)

Deleting a Mongo Db database

Created On: 08 Feb, 2017: 16:17:22 - Tags : database management

Url: https://docs.mongodb.com/manual/reference/command/drop/

To delete a Mongo Db database called test, enter the command: mongo. This will take you to the Mongo Db shell. Then enter the commands:


use test;
db.runCommand( { dropDatabase: 1 } );


Related Articles

  1. Upgrading Postgresql from version 9.4 to 9.6
  2. Upgrading MySQL server from version 5.6 to 8.0
  3. Ignoring errors during MySQL import
  4. MariaDB/MySQL user password not being set
  5. Sorting a MySQL string column as a number
  6. MySQL server out of resources
  7. MySQL Tuner
  8. Create backup of Mongo Db database
  9. Restoring a database backup in Plesk
  10. How to login to MySQL server as root user on Plesk
  11. List all databases for Postgresql
  12. Solution for mysql header mismatch error
  13. Backing up and Restoring MongoDB data
  14. Removing Replication in MongoDb
  15. Exporting Mysql database data in CSV format using Mysql Work Bench