Download your X archive before cleaning up
Before you delete posts, likes or messages on X, save a copy. Deleting can’t be undone, and your X archive is the only complete copy of your account that X gives you. It also helps clean-up apps find old posts and likes they can’t see otherwise.
How to request your archive
- In X, go to Settings and privacy → Your account → Download an archive of your data.
- Confirm your password and request the archive.
- Wait for X to tell you it is ready. This can take a day or more.
- Download the ZIP file. On iPhone it usually lands in Files → Downloads.
What’s inside
The ZIP has a data folder with one file per type of data. The ones that matter for a clean-up:
tweets.js: every post you have published, including your own reposts.like.js: the posts you liked.direct-messages.js: your one-to-one messages.account.js: which account the archive belongs to.deleted-tweets.js: posts you already deleted.
Photos and videos you posted are in separate folders.
How the apps use it
- Tweet Cleaner for X reads
tweets.jsand adds posts it couldn’t see through X, so you can delete back to your first post. It rejects an archive from another account and reads the file on your phone without uploading it. See How to delete more than 3,200 tweets with your X archive. - Like Cleaner for X reads
like.jsto add your oldest likes. The file has no dates, so the app estimates each post’s date from its ID. See How to remove likes by date or keyword on X. - DM Cleaner for X can add older one-to-one conversations from the ZIP. Group chats and encrypted chats are not included. See How to delete DMs in bulk on iPhone.
Keep it safe
Your archive contains much more than posts: messages, contacts, account details. Keep it in a private place, and don’t share it with anyone you don’t trust.
Remember that the archive is a snapshot. It still contains everything you delete afterwards. If you want something gone for good, delete old copies of the archive too. See Does deleting a DM on X remove it completely?
Frequently asked questions
Do I need a computer?
No. You can request, download and use the archive on your iPhone.
Should I request a new archive after cleaning up?
Only if you want a copy of what is left. A new archive won’t include what you deleted.