Here is a very easy one liner to recursively delete temporary internet files off of a Citrix server, for all user profiles.

I actually have to use this on our profile server, as somehow temporary internet files have festered into the user profiles.

Note: run powershell as admin, and you may or may not get errors about long path names depending on how large and festered your temp files are.

PS E:\location\to\citrix\profiles> ls ".\*\UPM_Profile\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\*" -Force | rm -force -recurse

Another note: always run a “rm” command with the “-whatif” switch FIRST.