Skip to content

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

FieldWhat it means
tweetIdID of the deleted post (in deleted-tweet-headers.js).
userIdYour account ID (in deleted-tweet-headers.js).
createdAtWhen the post was originally created (in deleted-tweet-headers.js).
deletedAtWhen 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

What to watch out for

Related files

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.