Need script to delete files, folders, and subfolders
I am new to the KACE world. I am hoping the community can assist me. I need a script that will do the following:
Delete any file or folder that is within any temp folder (including the temp folders in the users profile i.e., C:\Users\%USERNAME%\AppData\Local\Temp) need to be deleted. Also all files and sub folders within the download folder. I work in an environment where we need the ability to clean these folders out on a regular schedule.
I am terrible with scripting but would am willing to learn. Any assistance will be appreciated.