Public/ps1/Configuration/Remove-ConfigurationValue.ps1

function Remove-ConfigurationValue{
    param($name)

    
    $folder = Get-LeftConnectConfigurationFolder


    
    if (Test-Path "$folder\config.json") {
    } else {
        "{}"|set-content "$folder\config.json"
    }

    $config = Get-Content "$folder\config.json" | ConvertFrom-Json
    # the prpoerty does not exist

    $config.PSObject.Properties.Remove($name)


    $config | ConvertTo-Json | Set-Content "$folder\config.json" 

}