Skip to main content

I am using FME Server to move very large files into an Azure data store. The mechanism of this works fine but I would like to delete the files from FME servers temporary file store after the files are used to avoid filling up the memory of the server.

I know that the temporary uploaded files end up in the following location but not how to delete them:

FME_SHAREDRESOURCE_SYSTEM/filesys/temp/upload/Project1/AzureUpload.fmw/Username/*filename*

 

Thanks!

Hi @jw4554,

 

 

You can create scheduled cleanup tasks to remove files. There are the default tasks, as well as an option to create new scheduled tasks.

 

 


Hi @jw4554,

You could also create a separate workspace that runs after the processing workspace is done to delete the file. By using automations you can make sure that it runs after successfully completing the processing task.

I often use a SystemCaller at the end of the processing workspace to delete the input file. I prefer this option since it is visible on the canvas as opposite to a 'hidden' shutdown script.

Hope this helps.

 


Hi @jw4554,

 

 

You can create scheduled cleanup tasks to remove files. There are the default tasks, as well as an option to create new scheduled tasks.

 

 

great to know this is there - thank you! In this case I don't know how long the process will take to run but it will be useful for the future.

Hi @jw4554,

You could also create a separate workspace that runs after the processing workspace is done to delete the file. By using automations you can make sure that it runs after successfully completing the processing task.

I often use a SystemCaller at the end of the processing workspace to delete the input file. I prefer this option since it is visible on the canvas as opposite to a 'hidden' shutdown script.

Hope this helps.

 

Yes I agree - it is good to make the tasks obvious. I've not used a System Caller on FME server before - do I save a .bat file and trigger it?


Yes I agree - it is good to make the tasks obvious. I've not used a System Caller on FME server before - do I save a .bat file and trigger it?

You could do that or just place the command directly in the systemcaller


Reply