Skip to main content
Solved

How can I delete a respective csv file after uploading that created csv to azure file storage?


taransingh2812
Contributor
Forum|alt.badge.img

I have data going through feature writer that creates my csv, that then is uploaded to azure file storage using its connector in fme, once I successfully upload the csv, I want to delete that file from FME_DATASOURCE where I wrote it in the earlier step. How can I do that ?

Best answer by taransingh2812

Thanks Nielgerrits

 

Another solution that I discovered myself is, [Good thing that I was keeping exploring other transformers present]

After creating the csv using featurewritter I used a list exploder that helped me having each file name generated into its own feature value, that I used later to delete the respective file from the area using File Deleter transformer where I created them DYNAMICALLY.

 

It will be helpful for anyone who might have a similar query.

View original
Did this help you find an answer to your question?

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

When I do this I use the TempPathnameCreator to create a path to temp files, write the csv to the temp path and upload it. This way the source file will be cleaned automatically. Alternatives are SystemCaller, PythonCaller or FileCopyWriter.


taransingh2812
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • Best Answer
  • August 17, 2023

Thanks Nielgerrits

 

Another solution that I discovered myself is, [Good thing that I was keeping exploring other transformers present]

After creating the csv using featurewritter I used a list exploder that helped me having each file name generated into its own feature value, that I used later to delete the respective file from the area using File Deleter transformer where I created them DYNAMICALLY.

 

It will be helpful for anyone who might have a similar query.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings