Clear %temp% folder using UiPath


I want to clear %temp% folder in uipath everytime before robot start executing process.


Hi Rupesh,

You can use CMD Command to clear the Temp Folder.

Use Start Process Activity in UiPath,

In the Executable Text Box Type “CMD.exe” and in Argument Text Box Type “/c del /q/f/s %TEMP%*”


Clear Temp Folder.xaml (3.6 KB)

You can use this for your reference.


Hi @Santan_Barnwal,

Is there anyway for me to clear browser cache using CMD Command?


Try this Command in CMD.

rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 255


Is it like this @Santan_Barnwal?