How to log out of X (and off every other device)
Log out of X in three taps, or end every other session remotely from Apps and sessions. The two things X warns about: cached data and your Chat encryption keys.
The short version
- ▸In-app route: profile icon, Settings and privacy, Account (iOS) or Your account then Account Information (Android), then Log out.
- ▸To end other logins remotely, use Settings and privacy, Apps and sessions, Sessions, then Log out all other sessions. Each session shows its location and login time.
- ▸X warns that logging a session out may not delete Direct Messages already cached on that device, so it is not a remote wipe.
- ▸Login sessions and connected third-party apps are separate lists. Logging out does not revoke an app you authorised.
- ▸Logging out erases your Chat encryption keys on that device, and X says the encrypted history is unrecoverable if you cannot reset the passcode from another device still signed in.
Quick answer
To log out of X (formerly Twitter) in the app, tap your profile icon, open Settings and privacy, then tap Account on iOS or Your account followed by Account Information on Android, and tap Log out. On x.com, open the account switcher beside your profile name in the left sidebar and choose Log out. To end logins on devices you do not have in front of you, go to Settings and privacy, Apps and sessions, Sessions, and use Log out all other sessions.
Two details decide whether that was enough: X says a logged-out session may still hold cached data on the device, and it does not revoke any third-party app you connected.
Last updated: September 2026
Log out on the device in your hand
On iOS. X documents three separate routes:
- In the app: tap your profile icon in the top menu, tap Settings and privacy, tap Account, then tap Log out.
- From the phone: open your device Settings, tap X, pick the account if you have several, and select Delete Account. X is clear about what this means: removing the account from the app logs you out and does not delete the account.
- From the web: open your Apps tab on x.com and click Revoke access on the X for iPhone or X for iPad entry. Note that you cannot revoke a single iOS app here, only the whole iOS integration.
On Android. Per X's Android help page: tap the navigation menu icon or your profile icon, select Settings and privacy, select Your account, select Account Information, then Log out, and confirm with OK. Same reassurance applies: logging out does not delete the account, and you can add it back with the Log in button.
On x.com. Open the account switcher next to your profile name and handle at the bottom of the left sidebar, then choose Log out. If you keep several handles signed in there, the switcher is also where you add and swap between them, which we map in how to switch between X accounts.
Log out of every other device, remotely
This is the part people actually search for: the laptop at an old job, a friend's iPad, a session you do not recognise.
- Sign in on any device you still control.
- From Settings and privacy, open the Apps and sessions section of your account settings.
- Under Sessions, X lists every active login connected to your account, with the location and time of login.
- Click Log out next to a single session, or Log out all other sessions at the top of the list to end them all at once.
Read the list before you nuke it. The location and timestamp are how you tell "my old phone" from "someone else", and that distinction changes what you do next. If an entry genuinely is not yours, ending the session is step one of several, not the whole job. Our walkthrough of what to do when your X account is hacked has the full order of operations.
The caveat X puts in writing
Here is the sentence almost no guide on this query quotes, straight from X's apps and sessions help page:
Please note that while logging out of a session will prevent further actions from that session such as posting, Liking, and replying, it may not delete data (e.g., Direct Messages) that was previously cached on the device while the session was active.
So a remote log out is an authorisation change, not a remote wipe. It stops future activity. It does not promise that the content already pulled down onto that machine has gone. If the device is in someone else's hands and you are worried about what they can read, assume the cached copy is readable and act accordingly. On the DM side specifically, deleting messages is one-sided too, which is the limit we cover in how to delete a DM on X.
Logging out does not revoke connected apps
Sessions and third-party apps sit on the same settings screen and behave nothing alike.
| What it is | Where it lives | What ends it |
|---|---|---|
| A login session | Apps and sessions, under Sessions | Log out, or Log out all other sessions |
| A connected third-party app | Apps and sessions, app list | Revoke access for that app |
X describes third-party apps as applications built by external developers that, depending on permissions, can read your posts, see who you follow, update your profile, post on your behalf, access your Direct Messages, or see your email address. That access survives a log out. It survives a password change too.
Which means the full cleanup is three moves, in this order: change the password, end the other sessions, then walk the app list and revoke anything you do not recognise. The password step is worth doing first because it ends other sessions on its own, as we detail in how to change your X password. Then turn on two-factor authentication so a stolen password alone stops being enough.
What logging out does to your Chat messages
This is the newest consequence of logging out, and the one that can cost you something permanently.
X's About Chat page documents encrypted Chat, which replaced basic direct messaging with per-conversation encryption keys and a PIN that never leaves your device. Four things happen when you sign out:
- Every message on that device, including encrypted Chat messages, is deleted. Other devices you remain signed in on are untouched.
- If you are signed into both the X app and the X Chat app, you have to sign out of both for the messages on the device to be deleted.
- X erases the private key and conversation keys, unless you used the device-managed passcode option, in which case the passcode sits in your iCloud Keychain on iOS.
- Log back in on the same device and it can re-fetch and decrypt your conversations using that key.
The trap is the passcode. X says that if you cannot remember it you can reset it from any other device already using Chat, and then: "If unable to reset from a logged in device, you will not be able to recover your encrypted conversation history." One device, one forgotten passcode, and the history is gone. Before you log out of your only Chat device, make sure you either know the passcode or have a second signed-in device.
Log out, remove, deactivate: three different things
People use these interchangeably and then panic.
Logging out ends a session. Your account, posts, followers and DMs are all untouched, and signing back in restores everything except what was cached locally.
Removing the account from the app (the iOS device-settings route above) is a log out with extra steps. X states it does not delete the account.
Deactivating starts the clock on deletion and is a deliberately separate flow, covered in how to delete your X account.
If your real goal was to stop seeing X rather than to secure it, logging out is a blunt instrument. The web version keeps you signed in less aggressively and is easy to walk away from, which is one argument for using X in a browser instead of the app.
Bottom line
Profile icon, Settings and privacy, Account or Your account, Log out. For everything else, Apps and sessions, Sessions, Log out all other sessions, after you have actually read the list. Then remember the two limits X documents: a logged-out session may still hold cached Direct Messages on that device, and connected apps keep their access until you revoke them one by one.
If you are logging tools out of your account because you are not comfortable with what they can reach, that instinct is right. X-Autopilot runs in your own browser on your Mac instead of holding a cloud session: no delegate account, no shared IP pool, and the session cookie never leaves your machine. That is a smaller detection surface than a cloud scheduler, not an absence of risk, and no browser-based automation is sanctioned by X's rules.
Frequently asked
Answers indexed by Google + AI assistants.
How do I log out of X?+
In the X app, tap your profile icon, open Settings and privacy, then Account on iOS or Your account then Account Information on Android, and tap Log out. On x.com, open the account switcher next to your profile name in the sidebar and choose Log out.
How do I log out of X on all devices?+
Go to Settings and privacy, then the Apps and sessions section, and look under Sessions. X lists every active login with its location and time, with a Log out button beside each one and a Log out all other sessions button at the top of the list.
Does logging out of a session delete what is on that device?+
Not necessarily. X states that while logging out of a session prevents further actions such as posting, Liking and replying, it may not delete data such as Direct Messages that was previously cached on the device while the session was active.
Does logging out revoke apps I connected to my account?+
No. Third-party apps are a separate list from login sessions in the same Apps and sessions screen. An app you authorised keeps its access until you revoke it, so a cleanup means ending sessions and revoking apps.
What happens to my encrypted Chat messages when I log out?+
X says that when you log out, all messages including encrypted Chat messages on that device are deleted, and your private and conversation keys are erased unless you used the device-managed passcode option. Other devices you are still signed in on are unaffected.
Is logging out the same as deleting my X account?+
No. X states that logging out of the app does not delete your account, and that removing the account from your device's settings only logs you out. Deleting means deactivating the account, which is a separate flow.
- X Help - How to log out of X for Android: the Settings and privacy, Your account, Account Information, Log out path and the note that logging out does not delete your account (Wayback capture 14 October 2025)
- X Help - How to log out of the X app on an iOS device: the three documented routes, including removing the account from device settings (Wayback capture 11 August 2025)
- X Help - About third-party apps and log in sessions: the Sessions list, Log out all other sessions, and the cached-data caveat (Wayback capture 30 August 2026)
- X Help - About Chat: what logging out does to messages on the device, key erasure, the device-managed passcode and the unrecoverable-history warning (Wayback capture 15 September 2026)
Product designer and indie hacker. Runs the agent on his own X account every day and writes up what the data shows, including when it's inconvenient.
Follow on X →