I am trying to clean up folders, keeping the folders, but removing the files. I do not want to delete anything in some folders though and cannot figure out how. Here is what I have so far, but it deletes everything in each folder and also removes the 2 scripts on the first level. The ones I have marked with a red rectangle I need the script to ignore, the other folders I want the files deleted from.
Get-ChildItem -Path 'C:\Users\Tara.verity\Documents_Local\RemoveFilesFromFolders' -Exclude "*.exe","*.config","assets", "Documentation" -Recurse | ForEach-Object {$_.Delete()}