Guides

Download your X archive before cleaning up

Updated

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

  1. In X, go to Settings and privacy → Your account → Download an archive of your data.
  2. Confirm your password and request the archive.
  3. Wait for X to tell you it is ready. This can take a day or more.
  4. 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

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.