Table of Contents

Method DropDatabase

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

DropDatabase(string)

Drops a database.

public virtual CommandResult DropDatabase(string databaseName)

Parameters

databaseName string

The name of the database to be dropped.

Returns

CommandResult

A CommandResult.