Deleting temp folder in reframework

Hello

What is the best location to delete temp folder in reframework ?

I create it in the init state at each run

I download the files througout the process
I also have the screenshot folder there (the screenshots are later uploaded to sharepoint so i no longer need them in local)

What is the best location to delete this temp folder ?

I tried putting in the finally of the process state however i still need the folder there

should i put it in the end state ? or keep the folder and loop through it to delete each file at each run?

Thanks

Depends on your needs. If you need the folder empty for each transaction, then create it at the beginning of process transaction and delete it at the end of process transaction. If you just want to create it once and delete it when the job is done, create it in init and delete it in end. There is no “best location” it all depends on what your process requires.

1 Like

@adext
to delete the temporary folder would be in the “End Process” state. The “End Process” state is designed to perform cleanup tasks and finalize the automation run before exiting.

In the “End Process” state of the REFramework, invoke the workflow/sequence that deletes the temporary folder.

By following this approach, you ensure that the temporary folder is deleted at the appropriate time, after all the necessary work is completed within the automation process. This will help keep your environment clean and free up any unnecessary resources

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.