Click or drag to resize
MongoClient.DropDatabaseAsync Method
Drops the database with the specified name.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public override sealed Task DropDatabaseAsync(
	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.

Return Value

Type: Task
A task.

Implements

IMongoClient.DropDatabaseAsync(String, CancellationToken)
See Also