Public/DNS/Nameserver/func_Remove-OPNameserver.ps1
function Remove-OPNameserver { param ( [parameter(Mandatory = $true)] [string]$Name ) try { $request = Invoke-OPRequest -Method Delete -Endpoint "dns/nameservers/$Name" if ($request.data.success -eq $true) { return $true } } catch { Write-Error $_.Exception.Message } } |