Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document how to delete a database

See original GitHub issue

First of all: thanks for monk, it’s great! 👍

I need to delete an existing database previously created with monk, but could not found how to proceed in current documentation.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

mathieudutourcommented, Jun 27, 2017

oh I though I was passing the underlyingDB in the promise, my bad. You should be able to access it with

monk('host:port/dbname').then((db) => {


As for why dropDatabase doesn’t, I couldn’t say, never used it^^

mathieudutourcommented, Jun 27, 2017

indeed it’s not because it’s a private API 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete Documents — MongoDB Shell
The MongoDB shell provides the following methods to delete documents from a collection: To delete multiple documents, use db.collection.deleteMany() .
Read more >
Cleaning up or deleting the Document Processing databases
To clean up the database, run the following script: or if you are on Windows: ProjectCleanup.bat · To delete the database, run...
Read more >
MongoDB - Delete Document - Tutorialspoint
If you don't specify deletion criteria, then MongoDB will delete whole documents from the collection. This is equivalent of SQL's truncate command. >...
Read more >
Delete data from Cloud Firestore - Firebase
You can delete documents and collections from the Cloud Firestore page in the console. Deleting a document from the console deletes all of...
Read more >
Delete a database - Fauna Documentation
When a database is deleted, all of the database contents are deleted, including documents, collections, functions, keys, tokens, roles, access providers, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found