Luca you are an angel! 76000 tweets just gone! I had to use Firefox because Chrome was crashing in about 20% of the process. Twitter still shows that I have 4000 posts but they don't appear on my page.
Had the re-run the script once after it stalled at just over 500 deleted, but then it worked - over 10k deleted. Funny about a small handful of those undeletable ghost tweets but I'm not worried about those. Thank you!!
Thank you, Luca! I just deleted nearly 35,000 tweets. I did have to delete a handful individually after, but that took all of about a minute. I find watching videos super helpful when I'm trying to do something new, so I'm grateful that you made a video on how to do this. End of an era. I was on Twitter for twelve years. Sad times.
Hey thank you so much for this. I wanted to clean out my twitter account rather than delete it and I dreaded the thought of having to possibly manually do it. This was SO EASY and also satisfying to watch it go through all of my posts there and raffle them out.
thank you a lot! I have been trying to find a way to delete all without paying for applications which they want access to your account. you are the KING
Man you are a rock star. Didn't think this would be this simple but it legit worked. Deleted over 1K tweets except for 2 which were recent replies. Seriously, thank you, Luca!
VAYA MARAVILLA !! no contaba con que funcionase, y al principio me daba error pero solo he tenido que escribir "allow pasting" y me ha dejado pegar el texto. Mil gracias por el aporte ! PD: me hubiese gustado la opción de "filtrar tweets" para que no se eliminen los que yo quiero, no he sabido dar con ello.
You're a godsend when it came to show and how simple it was to clean up your twitter account. We really do live in sad times when people could use your own tweets against you. But no more.
And if you want to save some tweets from deletion, just copy the numbers at the end of the keep tweet, its a bunch of numbers, open up the js file in notepad and search, delete the section that has the tweet, and it will stay. I have left a few memorable tweets as well as one that points to my other socials. Best of luck to everyone.
56,289 tweets from 2007 to today, all gone. A fringe benefit is that the process forces un-technical users to download their archive. Thanks, Luca! Ko-fi incoming!
Unfortunately, this does not work properly for me, neither with Chrome nor with Firefox. The script stops after 10k tweets. When I restart it, it wants to delete everything again but nothing happens afterwards.
Have you tried clicking on "Advanced options" at the bottom of the blue bar? There you can skip the 10k that were already removed before selecting the file.
After searching endlessly. This solution actually works. The only thing I had to do was use a different browser (Microsoft Edge). Google Chrome's security did not allow me to paste any code into the console.
Brilliant job - thanks! 21,9222 posts deleted - I now feel cleansed! For me it stopped about halfway through, so I re-ran it starting at post 8000. If this is a common occurrence I suggest adding it to the instructions on this post. Danke shon Luca!
Thank you so much for writing the script and making such a great tutorial. Even though I'm a programmer, seeing where all the hidden buttons and levers are to get this to work is really nice. One tiny note I would add: It does not work if you have your account set to "protected" (aka. "private", "locked"🔒) You might think "duh, that's what 'protected' means", but it took me 15 minutes to realize why the script accepted the tweets.js file, but didn't seem to start running.
@@LucaHammerTube @Hornswroggle I had the same issue, was wondering why no progress bar. Set my tweets to unprotected again, refreshed and is working perfectly. Thanks a million for the code Luca, and the comment
110k tweets gone - Thank you so much!!!! I had two tweet files - one called "tweets" (80k) and another called "tweets - part 1" (30k) ran the script twice on two tabs and deleted everything no problem, so satisfying seeing 0 posts.
God bless you. I was able to delete over 5,000 tweets. Had to do it because I'm now building a brand for myself and I want to make my page about my niche alone. This really helped me to start all over. Thanks so much. 🙏🙏
Funktioniert bei mir aus irgendeinem, mir nicht erklärbaren, Grund. Es startet irgendwie so "Skipping 6739.222 oldest Tweets." Und fängt bei der Zahl an bis zur Anzahl der Tweets, gelöscht wird aber nichts.
@@tys9036 Versuch mal auf Advanced Options zu klicken und bei Skip 1 einzugeben. Dann versucht das Skript nicht selbständig auszurechnen wie viele übersprungen werden sollen.
Have you tried the newest version of the script? github.com/lucahammer/tweetXer/blob/main/tweetXer.js There was an issue with the part that tried to make it look slightly nicer. I removed it since then.
Muchísimas gracias por este gran aporte, me funcionó muy bien en una mini portátil marca Dell con Windows 7 Proffesional de 32 bits y, en general, no hubo ningún inconveniente.👌💻🤜🤛 El único problema fue que, cuando ya iba por más de la mitad de tweets borrados, la página de Twitter dejó de cargarse y se cayó, y me tocó empezar nuevamente pero ya me faltaban por borrar 528 tweets solamente. Al final, me quedó un residual en mi perfil de nada más 62 Tweets debajo de mi nombre, pues al parecer los ID de esos no estaban dentro del archivo; sin embargo, al buscarlos en el muro tampoco me salen, parece que quedaron ocultos. Un millón de gracias nuevamente ¡¡SALUDOS desde Cartagena-Colombia🇨🇴!! 🤙
Decided to wipe my 15yo account after uh... recent events. Thank you so much for this free and easy option, everything worked great! Only twitter's unfaving rate limit is keeping the tab open for another 10 hours haha
it worked fine for 1.5k tweets, after it some error happened and it stopped deleting. Now I'm trying to delete the remaining by repeating process but nothing is happen, it ain't deleting even though showing that tweets are getting deleted. Now what is the solution mate
Before selecting the tweet-headers.js file, click on "Advanced options" and enter 1500, then select the file. That will skip the first 1500 Tweets and the file which you already removed. If you don't do that, it will try to delete them again which takes time.
it didnt work for me, it says "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
Because they changed the domain from twitter.com to x.com the script failed. marlalein updated the script to make it work again. github.com/lucahammer/tweetXer/pull/9
Peço perdão por não escrever em inglês, Quando o processo de deletar os tweets é finalizado eu preciso fazer algo para desativar os comandos? o devtools?
Can I get this to work if my accounts already been deactivated? I deactivated it one and a half year ago so the 30 day period is long gone. (Also live in Europe, so idk if that automatically deletes my tweets or not >_>)
@@alzzarla4610 No, it doesn't work with deactivated accounts. In my opinion it's not necessary to delete Tweets before deactivating the account. In both cases the Tweets stay at least 30 days on the servers. If one requests another data export, the deleted ones show up in a file "deleted-tweets.js".
Hi! I tried your script and it worked perfectly, but after approx. 14.000 of the 20.000 tweets to be removed, Chrome crashed. Tried it again, and the same thing happened. Any idea what could be the cause? Since Twitter doesn't allow me to request a new archive (yet), every time I do this, it 'removes' 20.000 tweets again, of which 14.000 are already removed. But I need it for those last 6.000 now :) But I'm grateful it removed so many already!
around the 5000 tweet mark i got rate limited by twitter for too many requests. I recommend doing batches. would be nice if there was some log output file that tells you which of the tweets it was able to delete.
Hi Lucas, thank you for the video tutorial! I am using Firefox, and when I tried to run the script today in the console window, I keep getting a syntax error (Uncaught SyntaxError: unexpected token: identifier), and it does not take me to the select screen. Is there a workaround for this? Thank you!
@@LucaHammerTube All the code have copied when I double checked, and after I have restarted twitter abit later it worked now and the blue window showed up!
@@LucaHammerTube Really!? I did not see this option! Strange! Because the process of doing the work was interrupted for an unknown reason, and when I started it again, it showed the number of original tweets from the archive and did not ask me any questions! Of course, the tweets of the first stage were deleted.
It doesn't seem to work for me, I keep getting this error message "Uncaught SyntaxError: redeclaration of const waitForElemToExist". Anybody got any ideas?
This was useful information, but the script isn't working for me. I've tried it in Chrome and in Firefox, and it runs and seems fine, but there's no tweets being deleted and no movement on the progress bar even after hours. Not sure what's broken, but something clearly is.
@LucaHammerTube Nope, that's why it was so confusing. It seemed like it was working, but there was no progress indicated in any way. I've wasted so much time trying different methods to do this, I think I'm just going to end up deleting the whole damn account.
Whenever I run the script it skips my oldest tweets (more than 20.000) and I don't know how to change that? It says it's on line 123 on the code but I don't know what to change exactly...
Before selecting the file, click on "advanced options" and enter 1 instead of 0 to skip. If it is 0 and detects a difference between the amount of Tweets in the file and on the profile, it assumes it's not running for the first time and skips over the difference to not trying to delete the same Tweets over and over again. Setting it to 1 or any other number prevents that.
@@partsunknown33 Use Firefox. Or click on advanced options and enter the amount of Tweets that already got deleted to be skipped before selecting the tweet-headers.js file
Hi, thank you for this but I haven't had any luck on Windows. I've been trying to select my tweetheaders as suggested by your script but it's not getting anywhere.
@@ShinobiPhoenix-YT0 The count is often wrong, but if there are still visible Tweets on your profile, try "advanced options" and there "slow delete" which will remove the ones that got left.
In newer Chrome versions it'll be show an error. To avoid it type "allow pasting" first. Then paste the code. (According to the source, this "allow pasting" is a one-time pass to paste a code.)
@@user-zm4tb8np2x You open the .js file and remove all Tweets from it that you want to keep. Be careful with the first lines, everything including the [ needs to stay.
I'm sitting here downloading my TW data. It very slow and takes a very looong time to download. On my 4th hour by now for 7GB and still loading...geeez...wonder how long it will take - edits to add. finally downloaded. I started to delete and it said 4569 tweets deleted but my likes are still there.. ok I jsut saw that you have to select a different file like.js.
Thank you. works perfectly fine. just 1 question, if we delete the tweets and then close the browser, the code wont have anymore access to our twitter, right? it's just only once access when we run the code. that's it?
That's correct. If you paste the code to the console, it is gone after closing the tab/browser. If you installed the userscript, the code is loaded each time until you deactivate the userscript or remove it.
Already answered on the fediverse, but as info for others: - Switching to Firefox may help. - Reloading the website can fix authentication issues as well. Else logging out and in again.
You can do it with Safari, but it's more complicated to activate developer tools (somewhere in the settings) and I only tested if it works, not how well it handles thousands of Tweets.
Luca, can you help me? I have a question: The code was running perfectly and I could see the tweets being deleted as I refreshed the page. But then I lost my internet connection and I had to start again, but now the number of tweets is no longer updating (continues to show the same number) even with the code running perfectly again. What can be?
The script doesn't know about the Tweets that have already been deleted and tries to delete them again. As a result it will take some time until you see changes again. You can tell it to skip a certain amount of Tweets by clicking on "Advanced options" before selecting the file. There is a field to enter how many Tweets should be skipped.
@@LucaHammerTube Luca, that makes perfect sense. The code deleted approximately 30k tweets. I put the code to run again and I'll come back later to tell if it worked! Thank you for you help.
@@LucaHammerTube It worked perfectly. The code deleted all 100k tweets from my account. Thank you for making this code and also for answering our questions! God bless. Cheers from Brazil. 🇧🇷❤️
Great, thanks a lot. Do you have any advice on actual deletion of Twitter account? Some people say not to as the name then reverts to twitter and can be reallocated giving rise to cyber-squatting? Once again many thanks.
I cant get the blue box to appear in Firefox using the second method even though the extension (TweetXer) is toggled on. Could it be an issue with the latest update for Firefox?
Just did this successfully on all tweets and replies on my profile. However, media still appears and when I click, the whole tweet is still visible. Will that go away eventually, and if not, is there something we can do about that? Thank you so much again!
What version of the script do you use? @version at the top of the script. What browser do you use? Can you copy the full error? It should say in which line of the script it happens.
@@LucaHammerTube I’m using Google chrome Uncut type error; cannot read properties of undefined (reading ‘get attribute’ at object.createuploadform (:200:58 at object.init ( 60:14) at ):338:11
Luca I’m sorry another error Two actually This document requires ‘TrustedHTML’ assignment Uncaught typeerror Failed to send the ‘innerHTML’ propertyon’Element’: This document requires ‘TrustedHTML’ assignment.
3:46 hier habe ich nicht die option etwas auszuwählen bei mir ist nur der order "twitter-2024-11-24 zu sehen aber den kann man nicht öffnen wie bei dir wo dann "data" ganz am Anfang stand auch dass nicht alle folder "unzipped" worden sind :/
Update: Looks like my tweets are gone. I opened twitter on chrome and on my iphone and i dont see any tweets in my profile. I do see likes and media, however. Any way to delete them? Thanks!! I tried it in Chrome and Firefox. Having some issues: 1. Deletion stops around 3200 tweets 2. Skipping doesnt work even when I put the number in the box. On the side, it says "skipping 0 tweets" I unprotected my tweets, but that hasnt changed anything. Stuck at 2500 and it wont delete any new tweets, just starts from 0 again. Any ideas? I have 52k tweets left. Thanks!
In the tweets.js file all Tweets start and end with curly brackets: { } . They are seperated with commas , . Either remove them including the curly brackets and one comma or just remove the ID of the Tweet (replace with 0000 or something).
I am trying to paste the code in my console browser but it says type allow pasting and when i am typing allow pasting i still am not able to paste. Showing the same warning. What should i do
Hey Luca! I just found this video and wanna ask a question. Is there an option just to delete all the media posts uploaded to Twitter? I'm a music publisher on Twitter but only want to delete the music videos/pictures and Twitter says I have almost 3K media posts.
Luca you are an angel! 76000 tweets just gone! I had to use Firefox because Chrome was crashing in about 20% of the process. Twitter still shows that I have 4000 posts but they don't appear on my page.
interesting. Same thing for me. I'll try firefox
I genuinely appreciate this video more than you believe, and a huge thanks to the dev too. This saved me SO much headache
didnt you get ant errors
nope@@JamaaYangu-md6ko
Had the re-run the script once after it stalled at just over 500 deleted, but then it worked - over 10k deleted. Funny about a small handful of those undeletable ghost tweets but I'm not worried about those. Thank you!!
Can you explain the steps to me simply please? Thank you.
Thank you, Luca! I just deleted nearly 35,000 tweets. I did have to delete a handful individually after, but that took all of about a minute. I find watching videos super helpful when I'm trying to do something new, so I'm grateful that you made a video on how to do this.
End of an era. I was on Twitter for twelve years. Sad times.
Hey thank you so much for this. I wanted to clean out my twitter account rather than delete it and I dreaded the thought of having to possibly manually do it. This was SO EASY and also satisfying to watch it go through all of my posts there and raffle them out.
thank you a lot! I have been trying to find a way to delete all without paying for applications which they want access to your account. you are the KING
Thank you so much for this! I deleted 7k+ tweets. To get it to work, I had to clear the developer console cache and type "allow pasting."
Man you are a rock star. Didn't think this would be this simple but it legit worked. Deleted over 1K tweets except for 2 which were recent replies.
Seriously, thank you, Luca!
VAYA MARAVILLA !! no contaba con que funcionase, y al principio me daba error pero solo he tenido que escribir "allow pasting" y me ha dejado pegar el texto. Mil gracias por el aporte ! PD: me hubiese gustado la opción de "filtrar tweets" para que no se eliminen los que yo quiero, no he sabido dar con ello.
You're a godsend when it came to show and how simple it was to clean up your twitter account.
We really do live in sad times when people could use your own tweets against you. But no more.
And if you want to save some tweets from deletion, just copy the numbers at the end of the keep tweet, its a bunch of numbers, open up the js file in notepad and search, delete the section that has the tweet, and it will stay. I have left a few memorable tweets as well as one that points to my other socials. Best of luck to everyone.
Is there any tutorial showing how to do this ? also how do I know what the full section is ?
@@BSTComps
example
...},
{
....
},
just delete {
....
},
where ... is the tweet
sorry for my english xd
Not working
help whit this, please!
Do I delete only the number or the whole section?
56,289 tweets from 2007 to today, all gone. A fringe benefit is that the process forces un-technical users to download their archive. Thanks, Luca! Ko-fi incoming!
Thanks so much Luca. All the other services to do this cost money, and your script works perfectly. Great work, and thank you again.
the archive isn't downloading for me, it's only the text file
Unfortunately, this does not work properly for me, neither with Chrome nor with Firefox. The script stops after 10k tweets.
When I restart it, it wants to delete everything again but nothing happens afterwards.
Have you tried clicking on "Advanced options" at the bottom of the blue bar? There you can skip the 10k that were already removed before selecting the file.
After searching endlessly. This solution actually works. The only thing I had to do was use a different browser (Microsoft Edge). Google Chrome's security did not allow me to paste any code into the console.
I have a doubt will it delete our bookmarks too ??
If you save the code to run as a manual bookmark, it might work. Food for though. I had to do that with a reddit program and it worked.
Thank you, friend. I tried a couple other scripts that didn't work, this one's running now and seems to work like a charm.
Brilliant job - thanks! 21,9222 posts deleted - I now feel cleansed! For me it stopped about halfway through, so I re-ran it starting at post 8000. If this is a common occurrence I suggest adding it to the instructions on this post. Danke shon Luca!
I am glad it worked for you.
I updated the instructions with common issues and solutions for them.
@@LucaHammerTube I've done a thread about this in X and linked to it from Bluesky!
Thank you so much for writing the script and making such a great tutorial. Even though I'm a programmer, seeing where all the hidden buttons and levers are to get this to work is really nice.
One tiny note I would add: It does not work if you have your account set to "protected" (aka. "private", "locked"🔒) You might think "duh, that's what 'protected' means", but it took me 15 minutes to realize why the script accepted the tweets.js file, but didn't seem to start running.
@@Hornswroggle Thanks for the feedback. I tested it with a protected account and it worked. But that was about a year ago. I will have to test again.
@@LucaHammerTube @Hornswroggle I had the same issue, was wondering why no progress bar. Set my tweets to unprotected again, refreshed and is working perfectly. Thanks a million for the code Luca, and the comment
Cheers on having the best solution on mass deleting tweets! Managed to delete 38,648 tweets thanks to you! 😄
Glad I could help!
110k tweets gone - Thank you so much!!!!
I had two tweet files - one called "tweets" (80k) and another called "tweets - part 1" (30k) ran the script twice on two tabs and deleted everything no problem, so satisfying seeing 0 posts.
God bless you.
I was able to delete over 5,000 tweets. Had to do it because I'm now building a brand for myself and I want to make my page about my niche alone.
This really helped me to start all over.
Thanks so much. 🙏🙏
Funktioniert bei mir aus irgendeinem, mir nicht erklärbaren, Grund. Es startet irgendwie so "Skipping 6739.222 oldest Tweets." Und fängt bei der Zahl an bis zur Anzahl der Tweets, gelöscht wird aber nichts.
@@tys9036 Versuch mal auf Advanced Options zu klicken und bei Skip 1 einzugeben. Dann versucht das Skript nicht selbständig auszurechnen wie viele übersprungen werden sollen.
Thanks friend, I had to wait 24 hours for Twitter to give me the data, but it was worth it haha
did they let you know via email when your data was ready ? or how did you download it?
@@frangipaneee3715 Yes, I received an email to download my data
@@frangipaneee3715 Yes, I received an email with my details to download
@@frangipaneee3715 they notice you when is ready
I've been clicking "download archive" since yesterday, but it just sends me to a page that says "This page isn't working." Very stumped.
Worked like a charm. Thanks, Luca!
You sir are a gem who doesn't like wearing capes to show that he is a super hero gem
Thank you so much. Thousands of tweets deleted with ease, worked perfectly.
when i enter the script i get an uncaught type error for createuploadform, init, and . im using firefox and not sure what i should do
nevermind i just used tampermonkey instead, thanks for this script btw
Have you tried the newest version of the script? github.com/lucahammer/tweetXer/blob/main/tweetXer.js
There was an issue with the part that tried to make it look slightly nicer. I removed it since then.
This one worked perfectly, you are the best@@LucaHammerTube
It worked perfectly, please keep this updated.
Muchísimas gracias por este gran aporte, me funcionó muy bien en una mini portátil marca Dell con Windows 7 Proffesional de 32 bits y, en general, no hubo ningún inconveniente.👌💻🤜🤛
El único problema fue que, cuando ya iba por más de la mitad de tweets borrados, la página de Twitter dejó de cargarse y se cayó, y me tocó empezar nuevamente pero ya me faltaban por borrar 528 tweets solamente. Al final, me quedó un residual en mi perfil de nada más 62 Tweets debajo de mi nombre, pues al parecer los ID de esos no estaban dentro del archivo; sin embargo, al buscarlos en el muro tampoco me salen, parece que quedaron ocultos.
Un millón de gracias nuevamente ¡¡SALUDOS desde Cartagena-Colombia🇨🇴!! 🤙
I normally don't comment on videos, but thank you so much for putting this together.
Thanks Luca, it worked very well, it first showed an error, then I typed allow pasting then it worked perfectly.
thank you SO much, 30k tweets gone without any problem. you're an angel
Decided to wipe my 15yo account after uh... recent events.
Thank you so much for this free and easy option, everything worked great!
Only twitter's unfaving rate limit is keeping the tab open for another 10 hours haha
Hey there I just wanted to say thank you so much for offering us this easy and well explained option ♥ thanks for your work !
How do you navigate to the section to download your archive? You never showed us.
it worked fine for 1.5k tweets, after it some error happened and it stopped deleting. Now I'm trying to delete the remaining by repeating process but nothing is happen, it ain't deleting even though showing that tweets are getting deleted. Now what is the solution mate
Before selecting the tweet-headers.js file, click on "Advanced options" and enter 1500, then select the file. That will skip the first 1500 Tweets and the file which you already removed. If you don't do that, it will try to delete them again which takes time.
it didnt work for me, it says "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
Because they changed the domain from twitter.com to x.com the script failed. marlalein updated the script to make it work again. github.com/lucahammer/tweetXer/pull/9
@@LucaHammerTube oh really? Thank you so much ❤️
@@LucaHammerTube the code did crash again, but it was just one url that had twitter stil and i changed it, thank you so much ❤❤❤❤
This worked. 14,184 tweet deleted. No problems. Good speed. Thank you.
Peço perdão por não escrever em inglês,
Quando o processo de deletar os tweets é finalizado eu preciso fazer algo para desativar os comandos? o devtools?
if you just copy/pasted the code in console, its gone after you close the page/the browser. if you used userscript you would need to remove it tho
I love you man, thanks for that, I had to search for a while to find this.
Can I get this to work if my accounts already been deactivated? I deactivated it one and a half year ago so the 30 day period is long gone.
(Also live in Europe, so idk if that automatically deletes my tweets or not >_>)
@@alzzarla4610 No, it doesn't work with deactivated accounts.
In my opinion it's not necessary to delete Tweets before deactivating the account. In both cases the Tweets stay at least 30 days on the servers. If one requests another data export, the deleted ones show up in a file "deleted-tweets.js".
Hi! I tried your script and it worked perfectly, but after approx. 14.000 of the 20.000 tweets to be removed, Chrome crashed. Tried it again, and the same thing happened. Any idea what could be the cause? Since Twitter doesn't allow me to request a new archive (yet), every time I do this, it 'removes' 20.000 tweets again, of which 14.000 are already removed. But I need it for those last 6.000 now :)
But I'm grateful it removed so many already!
@@jelgerwoudstra9640 Click on "Advanced Options" before you select the file and enter 14000 to skip the already deleted ones.
Or use Firefox.
@@LucaHammerTube thanks for the quick reply, will try this!
I'm at the copy script into twitter part and it won't let me do it. I'm using a PC and firefox. Please help.
@@carriemaxwell417 Type "allow paste" and hit enter. Then you can paste it. If it doesn't work, type "allow pasting".
around the 5000 tweet mark i got rate limited by twitter for too many requests. I recommend doing batches. would be nice if there was some log output file that tells you which of the tweets it was able to delete.
Delete endpoint doesn't have a rate limit. Maybe something else limited you. People were able to remove over 100.000 Tweets with Firefox in one go.
Hi Lucas, thank you for the video tutorial!
I am using Firefox, and when I tried to run the script today in the console window, I keep getting a syntax error (Uncaught SyntaxError: unexpected token: identifier), and it does not take me to the select screen. Is there a workaround for this?
Thank you!
@@TheUltimateOwl Can you check if something was missing or too much when copying the code?
@@LucaHammerTube All the code have copied when I double checked, and after I have restarted twitter abit later it worked now and the blue window showed up!
Thanks Luca appreciate it. First i thought that it wont delete retweets and likes. But it deletes all. cheers
If the system shuts down while the tweet deletion process is running, will the deleted tweets be restored?
@@WeLoveGEO110 No, but it will not delete more Tweets. You can click on advanced options the next time to skip the amount that you already removed.
@@LucaHammerTube Really!? I did not see this option! Strange! Because the process of doing the work was interrupted for an unknown reason, and when I started it again, it showed the number of original tweets from the archive and did not ask me any questions! Of course, the tweets of the first stage were deleted.
Thank you so much!!! It is deleted my 120K tweets since 2010 now :)
Really ?
It doesn't seem to work for me, I keep getting this error message "Uncaught SyntaxError: redeclaration of const waitForElemToExist". Anybody got any ideas?
@@AERZTElalelu Try reloading the page and then paste the script once and press enter.
This was useful information, but the script isn't working for me. I've tried it in Chrome and in Firefox, and it runs and seems fine, but there's no tweets being deleted and no movement on the progress bar even after hours. Not sure what's broken, but something clearly is.
@@longbottle Are there any error messages in the console?
@LucaHammerTube Nope, that's why it was so confusing. It seemed like it was working, but there was no progress indicated in any way.
I've wasted so much time trying different methods to do this, I think I'm just going to end up deleting the whole damn account.
Whenever I run the script it skips my oldest tweets (more than 20.000) and I don't know how to change that? It says it's on line 123 on the code but I don't know what to change exactly...
Before selecting the file, click on "advanced options" and enter 1 instead of 0 to skip. If it is 0 and detects a difference between the amount of Tweets in the file and on the profile, it assumes it's not running for the first time and skips over the difference to not trying to delete the same Tweets over and over again. Setting it to 1 or any other number prevents that.
@@LucaHammerTube Thank you so very much, that worked perfectly ❤❤ You're awesome for doing this, it's efficient and quick.
Thanks Luca! Works perfectly.
seems to not be working. hangs about half way through for me. Same spot multiple times. Any thoughts?
@@partsunknown33 Use Firefox. Or click on advanced options and enter the amount of Tweets that already got deleted to be skipped before selecting the tweet-headers.js file
Thanks Luca and the author, saved me so much time.
It worked like magic. Huge thank! (Done on Firefox. Replies also deleted.)
didn't delete my replies
Thank you for this! Deleted every tweet going back to 2009. Amazing!
Hi, thank you for this but I haven't had any luck on Windows. I've been trying to select my tweetheaders as suggested by your script but it's not getting anywhere.
@@ABoyNamedArt What happens when you select it? Try reloading and starting over.
Anyone having any issues with replies and media? It got all my main tweets but on both Chrome and Firefox, it's not getting those.
@@tyryanart I heard that for some people using the tweets.js file solved that.
Thank you so much, it didn't get them all but sub-600 tweets from 36.5 THOUSAND is still a miracle. All the media is gone, so good enough for me.
@@ShinobiPhoenix-YT0 The count is often wrong, but if there are still visible Tweets on your profile, try "advanced options" and there "slow delete" which will remove the ones that got left.
In newer Chrome versions it'll be show an error.
To avoid it type "allow pasting" first. Then paste the code.
(According to the source, this "allow pasting" is a one-time pass to paste a code.)
Nhi hora hai delete
What do I do if I want to delete tweets from 2012 to 2018?
@@user-zm4tb8np2x You open the .js file and remove all Tweets from it that you want to keep. Be careful with the first lines, everything including the [ needs to stay.
@@LucaHammerTubeI can’t get this to work😬
Any way you can make a video on that?
🥳🥳🥳 thxs a lot Luca!! Work!!!. 8500 post deleted in 15 min.
I'm sitting here downloading my TW data. It very slow and takes a very looong time to download. On my 4th hour by now for 7GB and still loading...geeez...wonder how long it will take - edits to add. finally downloaded. I started to delete and it said 4569 tweets deleted but my likes are still there.. ok I jsut saw that you have to select a different file like.js.
Excellent work, thanks! I'm moving to Bluesky but it's good to be able to clean-up and set the Twitter account to protected.
Thank so much mate! This was extremely helpful.
Thank you. works perfectly fine. just 1 question, if we delete the tweets and then close the browser, the code wont have anymore access to our twitter, right? it's just only once access when we run the code. that's it?
That's correct. If you paste the code to the console, it is gone after closing the tab/browser. If you installed the userscript, the code is loaded each time until you deactivate the userscript or remove it.
@@LucaHammerTube thanks
1000% WORKED!!! bro u saved me a lot of money, thank you sso so so much i'm gratefulness itself i'm gonna explode of joy!!!!
this is a gem! still worked perfectly! Just used it!!!
I've just tried this, and got a "403 (Forbidden)" error when I opened up the console. Does anyone have the same problem?
Already answered on the fediverse, but as info for others:
- Switching to Firefox may help.
- Reloading the website can fix authentication issues as well. Else logging out and in again.
Great video worked a charm! Thank you Luca!
Worked like a charm. Thank you for this.
Anyone that chose what years they wanted deleted that can help me?
Thank you very much, kind sir. I'm currently deleting 13,830 tweets thanks to you. Cheers!
nice man. Thank you. Can you do this using safari? or does it have to be used in Firefox?
You can do it with Safari, but it's more complicated to activate developer tools (somewhere in the settings) and I only tested if it works, not how well it handles thousands of Tweets.
Luca, can you help me? I have a question: The code was running perfectly and I could see the tweets being deleted as I refreshed the page. But then I lost my internet connection and I had to start again, but now the number of tweets is no longer updating (continues to show the same number) even with the code running perfectly again. What can be?
When I delete a tweet manually, the number updates, but with the code running, there is no change :(. I think something went wrong for me
The script doesn't know about the Tweets that have already been deleted and tries to delete them again. As a result it will take some time until you see changes again.
You can tell it to skip a certain amount of Tweets by clicking on "Advanced options" before selecting the file. There is a field to enter how many Tweets should be skipped.
@@LucaHammerTube Luca, that makes perfect sense. The code deleted approximately 30k tweets. I put the code to run again and I'll come back later to tell if it worked! Thank you for you help.
@@LucaHammerTube It worked perfectly. The code deleted all 100k tweets from my account. Thank you for making this code and also for answering our questions! God bless. Cheers from Brazil. 🇧🇷❤️
Great, thanks a lot. Do you have any advice on actual deletion of Twitter account? Some people say not to as the name then reverts to twitter and can be reallocated giving rise to cyber-squatting? Once again many thanks.
I have a question, those this deletes repost and likes too? if not, how do I do to delete those?
it deleted retweets and tweets for me and if you insert the "like" java script it should delete all likes
Thank you Luca! Deleting almost 30k tweets.
Doesn't seem to be working for me. Progress bar showing no progress.
@@RandomJayne Is there an error message in the console? Try reloading and starting over.
That did happen to me 2. I usually use opera browser. There was as an error on the console that was blocking the script.
Solution: Used Firefox.
Thanks Luca, sad times in UK when you need to help someone delete their old tweets.
That’s surreal 😵💫
I cant get the blue box to appear in Firefox using the second method even though the extension (TweetXer) is toggled on. Could it be an issue with the latest update for Firefox?
Do you have the latest version of the script (0.5)?
This worked great, how can I do this and exclude deleting media?
Example: I want to delete all my personal quote tweets and text posts
Brilliant work, and very timely. Thank you for your explanations and code work.
When I put my tweets json in the tweetxer, it says "Deleting 0 Tweets" and nothing has happened for a while?
What's the full filename of the file that you select?
@@LucaHammerTube tweet-headers.js and then I tried tweets.js
@@LucaHammerTube tweet-headers and tweets with js at the end of them.
Just did this successfully on all tweets and replies on my profile. However, media still appears and when I click, the whole tweet is still visible. Will that go away eventually, and if not, is there something we can do about that? Thank you so much again!
i have a problem, when i pasting a code in my console browser this send me an error that cannot copy a code, how i fixing this error?
Type (don't copy) this command: allow pasting
Then hit enter. After that you should be able to paste the copied code.
@@KaarisonFord That happened to me. Press the space button at the end of the code and then press enter
I get an error when I copy paste the tweetXer and I can’t go further - help! It says uncaught typeError
What version of the script do you use? @version at the top of the script.
What browser do you use?
Can you copy the full error? It should say in which line of the script it happens.
@@LucaHammerTube I’m using Google chrome
Uncut type error; cannot read properties of undefined (reading ‘get attribute’
at object.createuploadform (:200:58
at object.init ( 60:14)
at ):338:11
Version 0.3
@@MoniquevdwCA Try 0.6 from here: raw.githubusercontent.com/lucahammer/tweetXer/refs/heads/main/tweetXer.js
Luca I’m sorry another error
Two actually
This document requires ‘TrustedHTML’ assignment
Uncaught typeerror Failed to send the ‘innerHTML’ propertyon’Element’: This document requires ‘TrustedHTML’ assignment.
3:46 hier habe ich nicht die option etwas auszuwählen bei mir ist nur der order "twitter-2024-11-24 zu sehen aber den kann man nicht öffnen wie bei dir wo dann "data"
ganz am Anfang stand auch dass nicht alle folder "unzipped" worden sind :/
@@frangipaneee3715 Das klingt nach einem unvollständigen Download. Du kannst probieren das Archiv erneut herunterzuladen.
@@LucaHammerTubeich werde es versuchen und hoffe dass es dann klappt 🙂↕️
Update: Looks like my tweets are gone. I opened twitter on chrome and on my iphone and i dont see any tweets in my profile. I do see likes and media, however. Any way to delete them? Thanks!!
I tried it in Chrome and Firefox. Having some issues:
1. Deletion stops around 3200 tweets
2. Skipping doesnt work even when I put the number in the box. On the side, it says "skipping 0 tweets"
I unprotected my tweets, but that hasnt changed anything. Stuck at 2500 and it wont delete any new tweets, just starts from 0 again.
Any ideas? I have 52k tweets left. Thanks!
Have you used your data export?
@@LucaHammerTube I did.
My likes are now deleted, but the media is still showing under Media tab (even though tweets/posts are gone)
Thank you for this tutorial !!! You’re a gem ❤
Can we only delete our retweets and leave our tweets ?
@@jayncalik TweetXer does not support that. It's either all or nothing.
Your advice worked perfect! Thank you so much!!
Over 140,000 tweets deleted. Thank you!
Thank you so much for this. You just earned a new sub
Hey, i wanna keep few tweets. I saw that we have to go In the tweets. js file but how to know where a tweet starts and where it ends?
In the tweets.js file all Tweets start and end with curly brackets: { } . They are seperated with commas , .
Either remove them including the curly brackets and one comma or just remove the ID of the Tweet (replace with 0000 or something).
I am trying to paste the code in my console browser but it says type allow pasting and when i am typing allow pasting i still am not able to paste. Showing the same warning.
What should i do
@mariav.carvalho4230 wrote that typing a space at the end helps.
Luca, you are the best! Thank you so much, this worked like a charm.
Hey Luca! I just found this video and wanna ask a question.
Is there an option just to delete all the media posts uploaded to Twitter?
I'm a music publisher on Twitter but only want to delete the music videos/pictures and Twitter says I have almost 3K media posts.
TweetXer is meant to remove all Tweets. There are other tools like delete.tweets.app which have filters for what to delete, but I didn't test them.
Worked beautifully. Thank you, thank you, a thousand times thank you!