Automate mongo process

we have a manual mongo process where we pass list of emails to delete it from a collection,How do we make sure it reads from a file and pass those email ids in array to be deleted ? any automation or script possible?

There are MongoDB drivers for every language you would be likely to use for scripting. Install a driver and script your process!

1 Like

mongo shell is an interactive env where you can run js code as i remember.

2 Likes