
MongoDB Delete
CertifiedDelete documents from MongoDB
MongoDB Delete
Certified
Delete documents from MongoDB
Runs deleteOne (default) or deleteMany on a collection. Filter supports BSON strings or maps rendered from Flow variables.
yaml
type: io.kestra.plugin.mongodb.DeleteExamples
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
Properties
collection *Requiredstring
MongoDB collection
connection *RequiredNon-dynamic
MongoDB connection properties
Definitions
io.kestra.plugin.mongodb.MongoDbConnection
uri*Requiredstring
Connection string to MongoDB server
URL format like mongodb://mongodb0.example.com: 27017
database *Requiredstring
MongoDB database
filter object
Query filter
BSON string or map rendered before execution.
operation string
Default
DELETE_ONEPossible Values
DELETE_ONEDELETE_MANYDelete operation
DELETE_ONE (default) or DELETE_MANY.
Outputs
deletedCount integer
Default
0Documents deleted
wasAcknowledged boolean
Whether the write was acknowledged
Metrics
deleted.count counter
Unit
countNumber of documents deleted from the MongoDB collection