Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

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
Specialist II
Specialist II

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

Master II
Master II

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


And the user must also be allowed to run external programs


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