Would anyone know of a code, or be able to point me to one, that will delete all files and folders under a given location. I am looking to schedule the empting of temp folders and would like it to be all inclusive. If a kill statement is needed also to force delete folders and there content that would help. Please advise of the best method to automate this and any help would be appreciated. Thank you.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!