Created
May 30, 2018 12:11
-
-
Save aburok/9f4fa185ee67c9099640d3bdf0e75c69 to your computer and use it in GitHub Desktop.
Umbraco Config Transforms remove transforms Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $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