Pentaho MongoDB Delete Plugin

A Pentaho Data Integration Plugin to delete MongoDB document


Delete with json query

In MongoDB Delete Plugin you can use JSON query. JSON query gives you flexibility to write your own query, more detail you can go to MongoDB Documentation.

Given data :

use mongodbdelete
db.customer.insert({first_name:"OLVERA", last_name:"DWAYNE", phone: "62127829280", email:"olvera.dwayne@yahoo.com", gender: "F"})
db.customer.insert({first_name:"JASON", last_name:"DWAYNE", phone: "62127829280", email:"jason.dwayne@yahoo.com", gender: "M"})
db.customer.insert({first_name:"HUEY", last_name:"BRANDON", phone: "99883471275", email:"huey.brandon@yahoo.com", gender: "M"})
db.customer.insert({first_name:"BROWN", last_name:"ELIZABETH", phone: "10655648674", email:"elizabeth.brown@gmail.com", gender: "M"})
db.customer.insert({first_name:"OWENS", last_name:"CARMEN", phone: "272234298332", email:"owens.carmen@gmail.com", gender: "F"})
db.customer.insert({first_name:"HANNON", last_name:"SETH", phone: "864392582257", email:"hannon.seth@gmail.com", gender: "F"})
                      

Let's delete records where gender is M (Male)

Step 1: Configure connection

Step 2: Set database and collection

Step 3: Configure query

Resources

Sample Transformation : delete-by-json-query.ktr