public/Remove-DuoIntegration.ps1

function Remove-DuoIntegration(){
    [CmdletBinding()]
    param
    (
        [parameter(Mandatory = $true,
        ValueFromPipelineByPropertyName = $true)]
        [string]$integration_key
    )
    [string]$method = "Delete"
    [string]$path = "/admin/v1/integrations/$($integration_key)"

    $DuoRequest = Convertto-DUORequest -DuoMethodPath $path -Method $method
    $Response = Invoke-RestMethod @DuoRequest -SkipHeaderValidation:$true
    If($Response.stat -ne 'OK'){
        Write-Warning 'DUO REST Call Failed'
        Write-Warning ($APiParams | Out-String)
        Write-Warning "Method:$method Path:$path"
    }
    $Output = $Response | Select-Object -ExpandProperty Response
    $Output
}