The first script below deletes your tweets, retweets and likes. Be careful! The deleted elements can't be restored!
The second script empties the list of accounts you follow.
Before proceeding, you should request and download your data archive : https://x.com/settings/download_your_data
Once you're ready:
- Go to the “Replies” tab of your profile.
- Open your browser's developer tools by pressing
F12
. - Copy-paste the first script (x_delete.js) in the “Console” tab of the developer tools.
- Press
Enter
to launch the script. - Wait until everything has been deleted. It can take a while, and you may have to reload the page and relaunch the script sometimes.
- Switch to the “Likes” tab of your profile and run the first script again.
- Click on the number of accounts you're following to get to the list of those accounts.
- Copy-paste the second script (x_unfollow.js) in the “Console” tab of the developer tools.
- Press
Enter
to launch the script.