I want delete file in folder data (Except in folder Input,Output,Temp)
Please guide me about it.
I want delete file in folder data (Except in folder Input,Output,Temp)
Please guide me about it.
Hi if the names of file and path is constant then you can use delete file activity , or if you want to delete xlsx files inside a folder then you can use directory.getfiles((Folderpath),“*.xlsx”)
and loop the files and use delete activity
Hi @fairymemay
If these are files generated from the automation, then I’d recommend creating a Separate Folder such as a “Temp Folder” and then either delete the Folder itself or the items within that folder.
Best thing about this, is you can create an Asset with the Temp Folder Directory and the robot will target the exact items you want to delete.
This leads to easier clean up.
Kind Regards,
Ashwin A.K
@Yoichi It error as below.
Hi,
Can you try either of the following because you use C#.
"D:\\RPA\\Distribution\\DPM_CustomerCampaign3_Bag\\Data"
OR
@"D:\RPA\Distribution\DPM_CustomerCampaign3_Bag\Data"
Regards,