Skip to main content
Version: Streamsheets 2.5

MONGO.DELETE

Stores data on a Mongo database. You can use the Function Wizard for this function.

Syntax

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

Arguments

NameDescription
ProducerProducer to use for deleting. The database name is configured in the affiliated Connector.
CollectionChoose an existing collection, where the item is stored.
QueryJSONDefine a query using a JSON cell range, which defines the object(s) to be deleted.
TargetINBOX(), 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)Define Timeout.

Return

TRUE, if no error.

Examples

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