I want to delete one or more image files from the Project Directory.
As attached in image I have to delete one or more image present in the directory. in my case 1.jpg is there.For deletion address should be DYNAMIC not full address should be there.
To achieve the requirement you have to follow below work flow.
We have to use two for each loops one for to get the Directories or folders from the main directory and second for each loop to get the file from the specific folder.
Inside second for each loop you have to use delete file activity to delete the image file(.jpg)
Please refer the below screenshot for your reference. And also attached sample work flow for your reference. i hope it might guide you to achieve your requirement. thanks.
Please note that since we are dealing with our Uipath project folders. Could you pls take backup before performing or testing these operations. thanks.
for example instead of deleting your file with delete file activity instead Use Copy file activity and input should be Item.tostring and destination should be your foldername+newfilename with extension. Please refer the attached work flow for your reference. thanks