Table of Contents

Method DropCollection

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

DropCollection(string)

Drops a collection.

public virtual CommandResult DropCollection(string collectionName)

Parameters

collectionName string

The name of the collection to drop.

Returns

CommandResult

A CommandResult.