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.
I tried reading through different documents and stack overflow questions but I couldn’t able to find an answer. Currently I’m running a loop to do this, but this will be multiple calls to DB. I’d like to have it in a single call. Please help me out. TIA