Deleting Temporary files created during ETL process

One Star

Deleting Temporary files created during ETL process

Hi,
I'm running an ETL process wherein I have to write some data into a temporary file and then read it. This thing happens on everyday basis. So I want to delete those temporary files once my ETL job is completed. Is there any way to do it in TalenD itself or do I need to delete those files from some external logic?
Please suggest.
thanks
Gnyanendra
Highlighted
One Star

Re: Deleting Temporary files created during ETL process

Hi,
Sure, you can use a subjob which will delete all files, based on a list or a file mask. You can use the tFileDelete component for this and use the tFileList for example.
Regards,
Arno

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog