Remove-QlikRule.ps1

function Remove-QlikRule {
    <#
    .SYNOPSIS
    This function ...
 
    .DESCRIPTION
    A bit more description
 
    .PARAMETER FromPipeline
    Shows how to process input from the pipeline, remaining parameters or by named parameter.
 
    .EXAMPLE
    Remove-QlikRule 'abc'
 
    Description of the example.
 
    #>


    <# Enable -Confirm and -WhatIf. #>
    [CmdletBinding(SupportsShouldProcess = $true)]
    param(
      [parameter(Position=0,ValueFromPipelinebyPropertyName=$true)]
    [string]$id
    )

    begin {
    }

    process{
    return Invoke-QlikDelete "/qrs/systemrule/$id"
  }

    end {
    }
}

if ($loadingModule) {
    Export-ModuleMember -Function 'Remove-QlikRule'
}