Delete records in different collection at once

I have used motor as driver for Mongodb. I have 3 collections and in each collection data there is field “name”. I want to delete data in every collection where there is “name” : “Sam” at once. Suppose with data in collection A, data is inserted in collection B and with collection B, data is inserted in C.

So, if data in only collection is deleted, it creates malfunction in my app. Is there any way to delete data of particular field in all collection at once?

Hello @Rabindra_Acharya … What you are describing is precisely the use case for multi-document transactions.