elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/mongo-schema / destroyDb
destroyDb(
__namedParameters
):Promise
<boolean
>
Drops a database, destroying its collections. If the database does not exist before calling this function, it will be created first then dropped.
Note that this function does not clear the destroyed database's Db instance from internal memory for performance reasons.
• __namedParameters
• __namedParameters.name: string
The name or alias of the database to destroy.
Promise
<boolean
>