Daily, before starting the bot run, I want to clear the temp files in folder and caches in chrome browser. Can someone suggest how to automate that process?

Daily, before starting the bot run, I want to clear the temp files in folder and caches in chrome browser.
Can someone suggest how to automate that process?

@Kumar_1308

  1. Use for eaxh file in folder and send the temp location and use delete file or directly delete the temp folder using delete
  2. To clear chrome cache you can open the history tab by using. The setting and history url in use app/browser then click on cleae hostory and select cache only

Cheers

I would:

  • include cleaning the temp folder (as Anil described) in the init part of your robots. It takes very little time to clean files, so it’s nice to start with a ‘clean desk’ so to speak.
  • Be mindful of the file deletion. Some temp files might still be in use somewhere and cannot be deleted. Not a problem, but make sure error handling around the deletion is present and not blocking to your robot execution.
  • Chrome: setup the browser once, to clear cache on exit. Be sure to neatly close the browser and not ‘kill’ the process on a regular exit though.

Thanks @Anil_G for your information.

1 Like

Thanks @Jeroen_van_Loon for the information, will try these steps.