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: 
Anonymous
Not applicable

Delete files with script

Is it possible to delete files using the script?

I have an scrip that loads a file and the makes use a store to save the outcome as a new file, but noticed that If I run this is script and the file is already saved on the folder the script stop triggering some erro message. When I delete the file manually, and run the script again everything works fine. So I wonder if I can add some kind of DELETE function at the beginning to be sure no previous files are present in the folder.

Does it make sense?

4 Replies
micheledenardi
Specialist II
Specialist II

You can use Execute statement to run batch file which can delete the file.

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
prieper
Master II
Master II

and the (technical) user executing the script must have write/delete priviliges.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

And the user must also be allowed to run external programs

Peter_Cammaert
Partner - Champion III
Partner - Champion III

An extensive treatment by Stefan Walther of multiple options to delete files is provided here: QlikTip #30: How to delete existing QVD files via load-script