Need someone to help create a script to delete temp files

Closed - This job posting has been filled.

Job Description

We have large number of Citrix / Terminal Services profiles sitting on Network Share. I need help writing powershell script that will do some cleanup such as deleting the contents of all temp folders locations for each user profile.

just to be super clear:

1. the script will run on a server that has "users profiles" folder mapped to it.

2. the "User profiles" folder contains large number of folders. each folder represent (User profile) so the script should know that it needs to go inside each folder (User profile) first and then check if the following folder directories are empty, if they are not empty it will clean it up and provide the result in a log file.

Here is list of path inside each user profile.

\UPM_Profile\AppData\Local\Temp
\UPM_Profile\AppData\Local\Microsoft\Windows\Temporary Internet Files
\UPM_Profile\AppData\Local\Google\Chrome\User Data\Default\Cache
\UPM_Profile\AppData\Local\Google\Chrome\User Data\Default\Media Cache
\UPM_Profile\AppData\Local\MigWiz

Thank you