Hi @Priya Jha ,
Thanks for using Microsoft Q&A platform.
Suppose we have a few files present inside blob location as shown below with dummy.txt file:
As per the requirement, we want to delete all files from that location except the Dummy file.
Following Community Expert @Subashri Vasudevan , third approach, we may achieve the result by below steps:
Overall Pipeline would look like this:
First, using Get Metadata activity we will get the Child Items from the blob location, settings as below:
Dataset Connection:
Secondly, we filter out the “dummy” file as below:
Next, we will iterate through the location using ForEach:
Inside ForEach , we will use Delete activity to get all the files deleted:
Hope these steps will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification