<# .SYNOPSIS Performs the appropriate clean action on the Alkami.PowerShell module system .EXAMPLE .\clean-solution.ps1 #> [CmdletBinding()] param( [switch]$AsBuildServer ) . $PSScriptRoot\.build\Load-Includes.ps1 $folders = (Get-ChildItem $PSScriptRoot -Directory) foreach ($folder in $folders) { $folderPath = $folder.FullName & $PSScriptRoot\clean-project.ps1 $folderPath -AsBuildServer:$AsBuildServer } $packagesPath = (Join-Path $PSScriptRoot Packages) if (Test-Path $packagesPath) { (Remove-Item $packagesPath -Force -Recurse) | Out-Null }