Public/Disconnect-Snowplow.ps1

function Disconnect-Snowplow {
    <#
    .SYNOPSIS
        Discards the stored session and any cached token.
    .EXAMPLE
        Disconnect-Snowplow
    #>

    [CmdletBinding()]
    param()
    $script:SnowplowSession = $null
    $script:SnowSchemaCache.Tables = $null
    $script:SnowSchemaCache.Fields = @{}
}