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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
jensej
Creator
Creator

[resolved] Delete folder that starts with (path problem)

Hey


I Need to delete a folder where the first 5 char is the same as my context variable. In this case my context variable is FlaVa.


Now ist only going to delete the folder if the Name of the folder is exactly FlaVa "C:/Users/FreJe/Desktop/UserDelete/Profile/FlaVa"   
I need to rebuild the job so that it also delete folder that starts with FlaVa or where FlaVa is written without capital letters. This examples under should also be deleted.
"C:/Users/FreJe/Desktop/UserDelete/Profile5/FlaVa.V2"       
"C:/Users/FreJe/Desktop/UserDelete/Profile5/FlaVaNewFolder"  
"C:/Users/FreJe/Desktop/UserDelete/Profile5/flava"  

0683p000009MFiE.jpg 0683p000009MFcm.jpg


                                    
 
How can i do this?  

Labels (2)
5 Replies
jensej
Creator
Creator
Author

Please help me guys, there must be some way to achieve this? 
Anonymous
Not applicable

Hi,
Have you tried to use tfilelist component to achieve your goal?
The work flow look like:tfilelist-->tfiledelete
Best regards
Sabrina
0683p000009MFb9.png 0683p000009MFiJ.png
jensej
Creator
Creator
Author

Thanks for your answer, yes i tried that but in your example youre deleting files .txt and i Need to delete all the Folders that starts with Flava.

0683p000009MFiO.jpg 0683p000009MFi0.jpg 0683p000009MFiT.jpg 0683p000009MFdz.jpg

It works now, i had some wrong Settings in tfiledelete
Anonymous
Not applicable

Hi,
Great it works. Thanks for your prompt reply.
Best regards
Sabrina
jensej
Creator
Creator
Author

Next question 0683p000009MACn.png 
Whats the easiest way to create a log file that lists all the Folders thats been deleted during the job?