Hi @Gana VK ,
Welcome to Microsoft Q&A platform and thanks for your query.
- Is it possible to construct complex JSON document ( step 2) using the COPY activity ? I was not and so used dataflow to create one.
Unfortunately Copy activity is not suitable to construct complex JSON documents. Mapping Data flow is the suggested approach by product team for dealing with complex JSON documents. - How do I delete Mongo DB collection ? Is there an activity available for it ? Any example ?
If it is a one time action, I would recommend to see below powershell and Azure CLI options.
a) https://video2.skills-academy.com/powershell/module/az.cosmosdb/remove-azcosmosdbmongodbcollection?view=azps-4.7.0
b) https://video2.skills-academy.com/cli/azure/cosmosdb/mongodb/collection?view=azure-cli-latest#az_cosmosdb_mongodb_collection_delete
c) In ADF we do not have specific activity, but you can write you own powershell script and execute it using Custom activity.