Table of Contents

Method RemoveAll

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

RemoveAll()

Removes all documents from this collection (see also Drop()).

public virtual WriteConcernResult RemoveAll()

Returns

WriteConcernResult

A WriteConcernResult (or null if WriteConcern is disabled).

RemoveAll(WriteConcern)

Removes all documents from this collection (see also Drop()).

public virtual WriteConcernResult RemoveAll(WriteConcern writeConcern)

Parameters

writeConcern WriteConcern

The write concern to use for this Insert.

Returns

WriteConcernResult

A WriteConcernResult (or null if WriteConcern is disabled).