functions/Remove-DrmmSiteProxy.ps1

function Remove-DrmmSiteProxy {

    <#
    .SYNOPSIS
    Deletes site proxy settings for the site identified by the given site Uid.
 
    .PARAMETER SiteUid
    Provide site uid which will be used to update proxy settings.
 
    #>


    # Function Parameters
    Param (
        [Parameter(Mandatory=$True)] 
        $siteUid
    )
    
    # Declare Variables
    $apiMethod = 'DELETE'

    # Remove proxy settings
    return New-ApiRequest -apiMethod $apiMethod -apiRequest "/v2/site/$siteUid/settings/proxy" | ConvertFrom-Json

}