wp user session <command>

Destroys and lists a user’s sessions.

In this article


# List a user's sessions.
$ wp user session list admin@example.com --format=csv
"2016-01-01 12:34:56","2016-02-01 12:34:56",,"Mozilla/5.0..."

# Destroy the most recent session of the given user.
$ wp user session destroy admin
Success: Destroyed session. 3 sessions remaining.


wp user session destroy

Destroy a session for the given user.

wp user session list

List sessions for the given user.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.