Automation/Remove-ArmAutomationDscNode.ps1

function Remove-ArmAutomationDscNode {
    [CmdletBinding(SupportsShouldProcess, ConfirmImpact='High')]
    param (
        [Parameter(Mandatory, ValueFromPipeline)]
        [Blue.AutomationDscNode] $Node,

        [Switch] $Force
    )
    begin {
        #This is the basic test we do to ensure we have a valid connection to Azure
        if (!(Test-InternalArmConnection)) {
            Write-Error -Message "Please use Connect-ArmSubscription" -ErrorAction Continue
            return
        }
    } process {
        $Uri = 'https://management.azure.com{0}' -f $Node.Id
        if ($Force -or $PSCmdlet.ShouldProcess($Node.Name)) {
            Get-InternalRest -Uri $Uri -ProviderName 'Microsoft.Automation' -Method Delete
        }
    }
}