Public/Disconnect-Ghost.ps1

function Disconnect-Ghost {
    <#
    .SYNOPSIS
        Disconnects from the Ghost site.

    .DESCRIPTION
        Removes the address of the site and the Admin API key from the session. Nothing is sent to the site:
        requests are signed with short-lived tokens, so there is no session to end.

    .EXAMPLE
        Disconnect-Ghost

        Forgets the connection that Connect-Ghost made.

    .LINK
        https://docs.ghost.org/admin-api#authentication
    #>

    [CmdletBinding()]
    [OutputType([void])]
    param()

    $script:GhostConnection = $null
}