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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
lennelei
Creator III
Creator III

<talend>\tac\archive directory cleanup?

Hi,
I've a \tac\archive within my talend installation that keeps growing (currently 10GB).
Can I clean up this directory?
Here is a sample:
D:\...\tac\archive>dir
Le volume dans le lecteur D s'appelle TIS
Le numéro de série du volume est B642-6CEB
Répertoire de D:\...\tac\archive
09/01/2012 10:41 <REP> .
09/01/2012 10:41 <REP> ..
20/11/2013 12:35 <REP> cmdline
09/01/2012 10:41 <REP> components
20/11/2013 12:36 <REP> jobs
20/11/2013 16:11 <REP> logs
09/01/2012 10:41 <REP> soa
0 fichier(s) 0 octets
7 Rép(s) 1 686 544 384 octets libres

"cmdline" and "jobs" folders contain lots of "task_xxxx" folders, each of one containing multiple .zip files...
Is it possible to delete anything here?
Thanks.
Regards.
Alexis
Labels (2)
2 Replies
Anonymous
Not applicable

Take a look at https://community.talend.com/t5/Design-and-Development/iterate-through-subdirectories/td-p/62224.
That shows a general approach to iterating through a set of subdirectories. Replace "tFileProperties -> tLogRow" with tFileDelete, for example. You may also want to read up on setting a context variable, then using runif based on the current value of the variable. This is useful if you only want to delete files that are older than a certain date, for example.
lennelei
Creator III
Creator III
Author

Hi,
thanks for the tip, but I'm not searching a way to delete files, only if I can delete them? 0683p000009MACn.png
Can I delete files and folders under the \tac\archive folder? If yes, should I keep anything? For example, the last file in each directory?
thanks again