Please refer this script if you want to delete files in multiple location's folders and subfolders which are older than x number of days.
Parameters to Edit:
path =[r'C:\Program Files (x86)',r'C:\Program Files',r'C:\Intel'] #Provide Your Folder Paths as mentioned format here
Note: r'C:\Program Files' here r'' is mandatory
File_extension=['.dat','.txt','.log'] #provide the required extensions
days=30 #provide number of days to delete the older files.
Please Run this Script as Local system user