Q:

powreshell function cleanup

function  CleanUp {
   # Delete directory content
   Get-ChildItem -Path ($PSScriptRoot + "\Files") -Recurse | ForEach-Object { $_.Delete()}
   Get-ChildItem -Path ($PSScriptRoot + "\Temp") -Recurse | ForEach-Object { $_.Delete()}
   Get-ChildItem -Path ($PSScriptRoot + "\Out") -Recurse | ForEach-Object { $_.Delete()}
}
1

New to Communities?

Join the community