examples/Resources/ChocolateyPackage/2-ChocolateyPackage_UninstallPackage.ps1

configuration Chocolatey 
{
    Import-DscResource -ModuleName Chocolatey

    Node localhost {
        ChocolateyPackage Putty {
            Ensure  = 'Absent'
            Name    = 'Putty'
        }
    }
}