Skip to content

spo logout

Log out from SharePoint Online

Usage

spo logout [options]

Alias

spo disconnect

Options

Option Description
--help output usage information
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Remarks

Attention

The 'spo disconnect' command is deprecated. Please use 'spo logout' instead.

The spo logout command logs out from SharePoint Online and removes any access and refresh tokens from memory.

Examples

Log out from SharePoint Online

spo logout

Log out from SharePoint Online in debug mode including detailed debug information in the console output

spo logout --debug