Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Delete a specific file

Hello,

I am trying to delete a specific list of files from one of my directory, but unfortunately I fail.
For this, I use: 
tFileList - iterate - tFileDelete
properties for tFileList: Directory path, Filemask: "xls"
properties for tFileDelete: Filename: ((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))

But unfortunatelly it is not working. Can someone help?

Thanks!
Lucian Sabau

Labels (2)
1 Reply
JR1
Creator III
Creator III

Hi Lucian

You job is looking for files with the name "xls" in tFileList and your tFileDelete component does nothing because there is no file named "xls". For Filemask you will need something like "*.xls" (this will return all files with file names ending with .xls) and the file name in tFileDelete will have to be ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).

Regards, Joachim