Relative Content

Tag Archive for mongodbmongodb-query

How to delete across multiple collections using a query in Mongo?

I have a requirement where I want to delete across multiple collections in a database using a query. For example, let’s say “id”. I want to delete all the documents in all the collections that I have in my database which has the “id” field with value “123” for example. And this should be from a code, let’s say a go code.