Appearance
Log out with plexctl
plexctl logout ends the active session — the counterpart to plexctl login. It revokes the session's bearer token server-side via DELETE /v1/auth/tokens/{id}, then clears the stored credential from the plexctl config file.
Prerequisites
- An authenticated session — see Log in with plexctl.
Steps
End the active session
shell
plexctl logout
# Logged out. Cleared profile "default".logout derives the token id from the stored credential, issues the revocation, and removes the profile entry. With no --profile it acts on the file-level default session.
End a specific profile's session
shell
plexctl --profile staging logout
# Logged out. Cleared profile "staging".Logout selects the session with the persistent --profile flag, so only the named profile is revoked and removed; other stored profiles are left untouched.
Verification
Re-run logout once the session is gone. With nothing left to revoke it makes no server call, prints a short note, and exits 0.
shell
plexctl logout
# No active session; nothing to do.
echo $?
# 0See also
../../reference/cli/plexctl/logout.md— every flag, exit code, and the JSON summary.- Log in with plexctl — the counterpart command that establishes the session logout ends.