Disconnect-PnPOnline

Disconnects the context

Syntax

Disconnect-PnPOnline
          [-Connection <PnPConnection>]

Description

Disconnects the current context and requires you to build up a new connection in order to use the Cmdlets again. Using Connect-PnPOnline to connect to a different site has the same effect.

Examples

------------------EXAMPLE 1------------------

Disconnect-PnPOnline

This will clear out all active tokens

Parameters

-Connection

Connection to be used by cmdlet

Type:PnPConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False