For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete

MongoDB delete operation.

Task version: 1.0.1

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

DeleteOptions : DeleteOptions

Delete single or multiple documents.

Possible values:

  • DeleteOne: Delete single or multiple documents.

  • DeleteMany: Delete single or multiple documents.

Default: 0 Example: DeleteOptions.DeleteOne

InputType : InputType

Input type.

Possible values:

  • Filter: Input type.

  • Filters: Input type.

  • File: Input type.

Default: 0 Example: InputType.Filter

Filter : String

A single filter to be processed.

Default: - Example: {'foo':'bar'}

Filters : DocumentValues[]

An array of filter(s) to be processed one by one.

Default: - Example: {{'foo':'bar'}, {'bar':'foo'}}

File : String

The file containing filter.

Default: - Example: c:\temp\file.json

Name
Description

🗝ConnectionString : String

Connection string.

Default: - Example: mongodb://foo:bar@localhost:00000/?authSource=admin

Database : String

Database.

Default: - Example: foo

CollectionName : String

Collection name.

Default: - Example: bar

Task Result

Name
Description

Success : Boolean

Delete complete. Example: true

Count : Int64

Count of deleted documents. Example: 1

Task Changelog

Changelog for Task Frends.MongoDB.Delete.

[1.0.1] - 2023-11-22

Fixed

  • Fixed dll error when importing the Task to Frends by adding local dll reference to the project file.

[1.0.0] - 2022-10-31

Added

  • Initial implementation

Last updated

Was this helpful?