Click or drag to resize
MongoClientBase.DropDatabase Method
Drops the database with the specified name.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public virtual void DropDatabase(
	string name,
	CancellationToken cancellationToken = null
)

Parameters

name
Type: System.String
The name of the database to drop.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
The cancellation token.

Implements

IMongoClient.DropDatabase(String, CancellationToken)
See Also