What is deleted-tweets.js in your X archive?
deleted-tweets.js holds posts you deleted that had not yet been removed from X's systems when the archive was made, which in practice means roughly the last 14 days. Older deleted posts are not in the archive.
How to open it
It is a text file in the archive’s data folder. Open it in any text editor; delete the first line’s window.YTD... = prefix and the rest is plain JSON any JSON tool can read. Our free viewer does not read this file yet; it covers likes, bookmarks and your own posts.
Fields in deleted-tweets.js
| Field | What it means |
|---|---|
| tweetId | ID of the deleted post (in deleted-tweet-headers.js). |
| userId | Your account ID (in deleted-tweet-headers.js). |
| createdAt | When the post was originally created (in deleted-tweet-headers.js). |
| deletedAt | When you deleted it (in deleted-tweet-headers.js). |
deleted-tweets.js holds the deleted posts themselves; the README documents fields only for its companion file, deleted-tweet-headers.js, shown above.
What it is useful for
- Recovering the text of a post you deleted by mistake in the last two weeks.
- Checking when something was deleted.
What to watch out for
- It is not a history of everything you ever deleted. Request the archive quickly if you need a recent deletion.
- May include deleted edits of an edited post.
Related files
- tweets.js : Your own posts
- tweet-headers.js : Post index
Field names come from the README.txt X includes in every archive. X changes the archive from time to time, so check the README in your own download if something differs. See every file in the archive.