I want to use get file named as .ica then after finding the files from dowloads folder i want to first delete all the files and then i will click on the file then will download an .ica file and then i want to open that downloaded file from the download

i want to use get file named as .ica then after finding the files from dowloads folder i want to first delete all the files and then i will click on the file then will download an .ica file and then i want to open that downloaded file from the download folder can anyone tell me the UiPath code for this

@KUNAL2

use assign activity

arr_files=Directory.getfiles(“Folderpath”)

use for each activity

inside use if activity
pass the condition which file you want to delete

inside use delete file activity

or you can use for each file in folder activity

can u show me with demo by using tools