Skip to content

Instantly share code, notes, and snippets.

@aburok
Created May 30, 2018 12:11
Show Gist options
  • Save aburok/9f4fa185ee67c9099640d3bdf0e75c69 to your computer and use it in GitHub Desktop.
Save aburok/9f4fa185ee67c9099640d3bdf0e75c69 to your computer and use it in GitHub Desktop.
Umbraco Config Transforms remove transforms Powershell
# $configPrefixes = @( "web", "connectionStrings", "ExamineSettings" )
$configurations = @( "Dev", "Staging", "Client-Staging", "Pre-Prod", "Live")
$configName = $configurations | ForEach-Object { "*.$_.config" }
$configTransforms = Get-ChildItem .\ `
-Include $configName `
-Recurse
$configTransforms | ForEach-Object {
Write-Output "Removing configuration transform file: $($_.FullName)"
Remove-Item $_.FullName `
-Force `
-Verbose
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment