Answers for "powreshell function cleanup"

1

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()}
}
Posted by: Guest on October-05-2020

Code answers related to "powreshell function cleanup"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language