Examples/Resources/KeyValuePairFile/2-KeyValuePairFile_RemovePlainTextPair.ps1
<#
.EXAMPLE Remove all `Core.Logging` keys in the file `c:\myapp\myapp.conf`. #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DSCResource -ModuleName FileContentDsc Node $NodeName { KeyValuePairFile RemoveCoreLogging { Path = 'c:\myapp\myapp.conf' Name = 'Core.Logging' Ensure = 'Absent' } } } |