Skip to main content
Very Popular
Latest
method Collection.prototype.deleteOne
import { Collection } from "https://deno.land/x/mongo@v0.33.0/src/collection/mod.ts";

Delete a single document matching the given filter

Parameters

filter: Filter<T>

The query used to match the document

optional
options: DeleteOptions

Additional options for the operation

Returns

Promise<number>

The number of documents deleted