Skip to main content
Version: Streamsheets 3.0

MONGO.DELETE

Stores data on a Mongo database.

Syntax

=MONGO.DELETE(Connection, Collection, QueryJSON, Target, [Timeout])

Arguments

NameTypeDescription
ConnectionConnectionReference to connection used for deleting. The database name is configured in the affiliated connection settings.
CollectionStringChoose an existing collection, where the item is stored.
QueryJSONJSONDefine a query using a JSON cell range, which defines the object(s) to be deleted.
TargetTargetINBOX(), OUTBOX("MsgID") or a cell range where the result will be placed. Make sure the cell range is big enough or not everything is displayed.
Timeout (optional)NumberDefine Timeout in seconds.

Return

TypeDescription
Boolean or ErrorTRUE, if no error.

Examples

FormulaResultComment
=MONGO.DELETE(MongoConnection!,"TestCollection", JSON(A1:B4))
TRUEThis deletes all documents in the database with the values from A1:B4 using the "Producer" in the collection "TestCollection".