Delete
Delete one or many documents from a MongoDB collection.
yaml
type: "io.kestra.plugin.mongodb.Delete"
yaml
id: mongodb_delete
namespace: company.team
tasks:
- id: delete
type: io.kestra.plugin.mongodb.Delete
connection:
uri: "mongodb://root:example@localhost:27017/?authSource=admin"
database: "my_database"
collection: "my_collection"
operation: "DELETE_ONE"
filter:
_id:
$oid: 60930c39a982931c20ef6cd6
Dynamic YES
MongoDB collection.
Dynamic NO
MongoDB connection properties.
Dynamic YES
MongoDB database.
Dynamic YES
Default DELETE_ONE
Possible Values
DELETE_ONEDELETE_MANY
Operation to use.
Dynamic YES
MongoDB BSON filter.
Can be a BSON string, or a map.
Default 0
The number of documents deleted.
Whether the write was acknowledged.
Dynamic YES
Connection string to MongoDB server.
URL format like mongodb://mongodb0.example.com: 27017