Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Luca Hammer
Luca Hammer
@luca@social.luca.run  ·  activity timestamp 2 years ago

I heard that the tools to delete all your Tweets don't work anymore. This script allows you to delete them anyways: [this is the old script, look at bottom for the new one] https://gist.github.com/lucahammer/1aa16b4d3c1fb04035839da5ef699d65

- #Xcorp may view it as a violation of their terms (automation) and ban your account. Use at your own risk.
- At least in the EU you have a right to delete your own data which overrules any company terms.
- This only removes them from your profile, Tweets may still exist in backups and other places.

I wasn't able to get the script to run unsupervised. After some time the timeline stays empty and you have to manually reload the page and run the script again. Currently, I am testing it with a 15 year old account with 19 k Tweets. I had to reload every 500 Tweets on average. After adjusting the script to not hit the rate-limit (50 requests per minute), it should run with less interruptions. But the Xcorp infrastructure is unreliable. #twitter

2023-09-19 Initial release
2023-09-19 Replies get deleted as well. Script switches between Tweets and Replies until neither returns new results.
2023-09-25 New script that uses the data export and is much faster: https://social.luca.run/@luca/111120828522417018

Firefox with open browser console. At the top is a slice of the Twitter website visible. Everything but the message "Your post was deleted" is pixelated.

Browser console at the bottom:
/*
This may get your account banned. It runs in your regular browser with your regular login without needing the API.
The script does the same things that you would do yourself: 
Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat.
==========================… 
Tue, 19 Sep 2023 09:25:28 GMT Deleted 10 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:25:37 GMT Deleted 20 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:25:44 GMT Deleted 30 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:25:53 GMT Deleted 40 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:02 GMT Deleted 50 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:12 GMT Deleted 60 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:20 GMT Deleted 70 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:28 GMT Deleted 80 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:37 GMT Deleted 90 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:45 GMT Deleted 100 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:26:54 GMT Deleted 110 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:27:02 GMT Deleted 120 Tweets debugger eval code:72:42
Tue, 19 Sep 2023 09:27:10 GMT Deleted 130 Tweets debugger eval code:72:42
Firefox with open browser console. At the top is a slice of the Twitter website visible. Everything but the message "Your post was deleted" is pixelated. Browser console at the bottom: /* This may get your account banned. It runs in your regular browser with your regular login without needing the API. The script does the same things that you would do yourself: Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat. ==========================… Tue, 19 Sep 2023 09:25:28 GMT Deleted 10 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:25:37 GMT Deleted 20 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:25:44 GMT Deleted 30 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:25:53 GMT Deleted 40 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:02 GMT Deleted 50 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:12 GMT Deleted 60 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:20 GMT Deleted 70 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:28 GMT Deleted 80 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:37 GMT Deleted 90 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:45 GMT Deleted 100 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:54 GMT Deleted 110 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:27:02 GMT Deleted 120 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:27:10 GMT Deleted 130 Tweets debugger eval code:72:42
Firefox with open browser console. At the top is a slice of the Twitter website visible. Everything but the message "Your post was deleted" is pixelated. Browser console at the bottom: /* This may get your account banned. It runs in your regular browser with your regular login without needing the API. The script does the same things that you would do yourself: Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat. ==========================… Tue, 19 Sep 2023 09:25:28 GMT Deleted 10 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:25:37 GMT Deleted 20 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:25:44 GMT Deleted 30 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:25:53 GMT Deleted 40 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:02 GMT Deleted 50 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:12 GMT Deleted 60 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:20 GMT Deleted 70 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:28 GMT Deleted 80 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:37 GMT Deleted 90 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:45 GMT Deleted 100 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:26:54 GMT Deleted 110 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:27:02 GMT Deleted 120 Tweets debugger eval code:72:42 Tue, 19 Sep 2023 09:27:10 GMT Deleted 130 Tweets debugger eval code:72:42
  • Copy link
  • Flag this post
  • Block
Luca Hammer
Luca Hammer
@luca@social.luca.run replied  ·  activity timestamp 2 years ago

Short video for people who haven't used the browser developer tools yet.

Your browser does not support the video tag.
This video cannot be previewed
Open original
twitter.com/hammersolar is open in Firefox. The mouse moves to the menu at the top right, in the drop down it selects "more tools" and then "web developer tools". A new section appears at the bottom of the browser. It shows the source code of the website and has multiple tabs. The mouse clicks on the second tab, called "Console". The source code disappears. Multiple lines with warnings and errors show up. Below is a line to enter things. The script is pasted into the line and run by hitting enter. The website starts to scroll on its own and in the console new messages appear: Deleted 1 Tweets, Deleted 2 Tweets, Deleted 3 Tweets. After 15 Tweets nothing happens anymore. The browser gets reloaded and the mouse highlights the line "0 posts" at the top of the profile.
  • Copy link
  • Flag this comment
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct