Delete file that varies in names

Hello friends, I currently have another topic open but I hope you can help me in this too!

I have a project that download xls files and put them on desktop, after I manipulate it and save as another file, I want to delete this xls file. Problem is, that xls file change names depending on date and time that I download it (Example: Sales_15_03_24_11_40_32)

How can I delete a file that varies in names every time I download it?

1 Like

@henrique.quintela

if some part of the name is same then you can use that aprt to get the mails

use for each file in fodler and in filter give the name you think is static eg: "*Name*"

cheers


Like this? that text in delete file says Full Name (including full path)

@henrique.quintela

you should use currentfile.fullname

also in filter add * at the start and end so tht if filters with contains

cheers

Hi @henrique.quintela

Input:-
image

Output:-
image

Bot will delete the file which contains “Sale_Today’s date” in file name.

Xaml File:-
Dynamically delete the file forum.zip (14.0 KB)

If this works for you, please mark it as a solution, so others can refer the same. :slight_smile:

Thanks.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.