Dropping mongodb database from API?

25 Views Asked by At

Is it possible to drop a mongodb database from my app’s api?

I can do it using mongosh, db.dropDatabase(), but would like to do this from my JavaScript api. I can’t seem to find much info, or perhaps in my naivety I’m searching for the right term.

Any help would be appreciated,

Cheers

0

There are 0 best solutions below