sodcalculator

10 Tech How-To

Recover Deleted Twitter Messages: Step-by-Step

Guide 10-29580 · Updated · Step by step

Recovering deleted Twitter messages (DMs) is possible in a few situations, but not all. This guide explains exactly what you can recover, what you can’t, and the step-by-step methods to retrieve your messages from Twitter’s data archives, email notifications, or third-party backups. Before starting, you’ll need access to the email address linked to your Twitter account and, ideally, your current login credentials.

What You’ll Need

  • Access to the email address associated with your Twitter account
  • Your Twitter username and password (to download your data archive)
  • If you use a third-party app (like a Twitter client or backup service), access to that app’s account or local files
  • Patience: the data archive can take up to 24 hours to prepare

Step-by-Step

Method 1: Download Your Twitter Data Archive (Most Reliable)

  1. Log in to your Twitter account on a web browser (not the app).
  2. Click More (the three dots in the left sidebar) and select Settings and privacy.
  3. Go to Your account > Download an archive of your data.
  4. Enter your password and confirm. Twitter will send a verification code to your email or phone.
  5. Enter the code. Twitter will then prepare your archive. You’ll get a notification when it’s ready (usually within a few minutes to 24 hours).
  6. Once ready, return to the same page and click Download archive.
  7. Unzip the downloaded file. Look for a folder called data and open direct-messages.js (or direct-messages.json) in a text editor or browser. This file contains all your DMs, including deleted ones, as long as they were sent or received before you deleted them.
  8. Search through the file for the conversation you thought was deleted. You’ll see the full message text, timestamps, and usernames.

Method 2: Check Email Notifications

  1. Open your email inbox (the one linked to Twitter).
  2. Search for emails from Twitter with the subject line like “You have a new Direct Message” or “New message from [username]”.
  3. If you have email notifications enabled for DMs, these emails often contain the full message text. Even if the message is deleted on Twitter, the email copy remains.
  4. Open the relevant email and copy the message content.

Method 3: Check Third-Party Backup Apps or Clients

  1. If you used a third-party Twitter client (like Tweetbot, Twitterrific, or a backup service like Social Book Post Manager), log into that service.
  2. Look for a “backup” or “archive” feature – many automatically save your DMs.
  3. If you have a local backup from such an app (e.g., a CSV or JSON file), open it and search for the deleted messages.

Method 4: Check Browser History (Limited)

  1. If you viewed the DM in a web browser and didn’t clear your history, you might be able to find the cached page.
  2. Open your browser history and search for “twitter.com/messages”.
  3. Click on a cached version of the conversation page. This is unlikely to work, as Twitter loads content dynamically, but it’s worth a try.

Common Mistakes

  • Assuming the archive includes messages deleted before you requested it: The archive includes messages that were in your account at the time of the request. If you deleted a message, it’s still included because the archive captures a snapshot of your data, including deleted items that are still on Twitter’s servers.
  • Looking for the .js file in the wrong place: The archive structure can change. Look for “direct-messages.js” or “direct-messages.json” inside the “data” folder. If not there, search the entire unzipped folder.
  • Not waiting for the archive to be ready: Twitter will notify you, but sometimes the notification is delayed. Check the download page periodically.
  • Forgetting about email notifications: Many people disable DM email notifications, but if they are on, they are a goldmine.

Tips

  • Act quickly: Twitter may permanently purge deleted messages after a certain period (though this is not publicly documented). The sooner you try to recover, the better.
  • Enable email notifications now: Go to Settings > Notifications > Preferences > Email notifications and turn on “Direct Messages”. This way, future DMs will be emailed to you.
  • Use the archive regularly: Download your Twitter data every few months as a backup. It’s free and easy.
  • Search the archive thoroughly: The .js file can be huge. Use a text editor’s search function (Ctrl+F or Cmd+F) with the username or a keyword from the conversation.
  • Check the “account” folder in the archive: Sometimes deleted messages appear in the “account.js” file as well, though this is rare.

Troubleshooting

  • Archive download fails: Try a different browser, disable ad blockers, or clear your cache. If the download link expires, request a new archive.
  • The archive doesn’t contain the deleted message: This can happen if you deleted the message and then permanently deleted your account (then recreated it), or if Twitter has already purged the data. In this case, the only hope is email notifications or third-party backups.
  • Can’t log in to Twitter: If you’ve been locked out, use the “Forgot password” option to regain access. You’ll need access to your email or phone.
  • The .js file is unreadable: Open it in a browser (double-click it) – it will render as a readable list. Or use an online JSON viewer.
  • Email notifications don’t go back far enough: Email providers often delete old emails. Check your spam folder and archived emails.

Frequently Asked Questions

Can I recover DMs that were deleted by the other person?

No. If the other person deletes a DM, it is removed from your account as well, and it will not appear in your archive. The archive only includes messages that are still in your account (even if you deleted them, but not if the other person did).

Will the archive include messages I deleted years ago?

Possibly. Twitter’s archive includes all data Twitter has on you at the time of the request. There is no official time limit, but if Twitter has purged the data, it won’t be there. It’s best to try as soon as possible.

Can I recover DMs from a suspended or deleted account?

If your account is suspended, you may still be able to request your data archive during the appeal process. If the account is permanently deleted, you cannot access the archive. However, if you had previously downloaded an archive, you can use that.

Is there a way to recover DMs without downloading the archive?

No, not reliably. Twitter does not offer a “restore deleted messages” feature. Your only options are the archive, email notifications, or third-party backups.

How long does it take to get the archive?

Usually from a few minutes to 24 hours. Twitter will notify you via notification and email when it’s ready.

Can I recover DMs from the Twitter app on my phone?

No, the app does not store deleted messages locally. The archive method is the only way, and you must use a web browser.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →