deleteOne

suspend fun MongoCollection<*>.deleteOne(filter: BsonDocument): Boolean

Delete a single object from the remote collection.

Return

a boolean indicating if a document was deleted or not.

Parameters

filter

a filter to specify the documents to delete.

Throws

if the underlying App Service HTTP requests fails.