Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
mlin
Contributor II
Contributor II

Delete local file dynamically

I have a batch file to retrieve files from an FTP site and download to my local directory each day. I need to write something to delete any files in my local directory that are not the latest file. 

The file names are sequential, but are not date related.

i.g. file123, file124, file125, ...

I want to delete file123, file124. 

Anyone have any ideas? In QS or batch.

0 Replies