Functions/Authentication/Clear-PASPrivateSSHKey.ps1

# .ExternalHelp psPAS-help.xml
function Clear-PASPrivateSSHKey {
    [CmdletBinding()]
    param( )

    BEGIN {

        Assert-VersionRequirement -RequiredVersion 12.1

    }#begin

    PROCESS {

        $URI = "$($psPASSession.BaseURI)/api/Users/Secret/SSHKeys/ClearCache"

        #send request to webservice
        Invoke-PASRestMethod -Uri $URI -Method DELETE

    }#process

    END { }#end
}