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

Delete a file with a filemask

Hi,
I have a bunch of files in a directory, and I need to delete only one of them:
aaaa.txt
bbbb.txt
cccc.txt
How can I only delete cccc.txt?
I tried using tSystem, and "rm c*.txt", but it does not work. It says no such file or directory.
It does not seem to like asterisks....
Let me know,
Thanks,
Boris
Labels (2)
1 Reply
alevy
Specialist
Specialist

You can use tFileList to get the file names using a wild-card character and then iterate to tFileDelete.