Deleting lots of old tweets

I recently realized that it would be safer to delete thousands of old tweets than allow a determined hacker access to them. I don’t know how good Troll Boy’s skills are. So I set about finding a way to delete thousands of old tweets. None of the free apps deletes tweets further back than a thousand or three, so were of no use.

My heart leapt when I found Twitter Archive Eraser and then promptly dropped into my boots when I realized it was Windows-only. Bah!

Then I found the solution that worked like a dream: Shame Eraser and instructions on Buzzfeed which are reblogged here:-

Now that Twitter has made it easy to download our entire tweet archives, the Internet is now faced with the scary reality that the dumbest things we’ve ever said are only a few clicks away. Our early tweets were sent from a time of innocence, joy, and freedom from the realization that one day other people (and we ourselves) might pass judgement on them. But the time of reckoning has come. And if you’re unable to bear the weight of your shame, this is your way out. Perhaps you had a particularly dark period after a break-up. Maybe your first six months on Twitter were just bad haikus. If you’re the type of person who rips up your old shitty poems, this script is for you.

Important: this should be obvious, but to be sure there is no undo for this script. If you haven’t seen Eternal Sunshine of the Spotless Mind, you might want to watch it first. Weigh your options carefully before erasing your past. (You will, of course, still have your local archive after deleting the public tweets.)

Set Up A Twitter App

First, you’ll have to set up a Twitter app on the developer portal and generate an OAuth key.
1. Visit the Twitter Developer Apps page and create a new app, filling out only the required fields.
2. Go to the “Settings” tab for your app, scroll down, and change “Application Type” to “Read and Write”, then click “Update this Twitter application’s settings”.
3. Go to the “Details” tab, scroll down, and click “Create my access token” (or “Recreate my access token” if you already created one). When you refresh, you should see “Access Level: Read and Write” after your access token and secret.

Download Shame Eraser from Github

Download this archive and unzip it.

Delete Your Old Tweets

Download your tweet archive and unzip it. Next, you’ll have to run some things on the command line. Open the Terminal (just type “Terminal” into Spotlight), copy and paste this into the tab that opens up, and hit Enter:
cd ~/Downloads/shame-eraser-master && sudo gem install bundler && bundle install && open lib

Note: if you changed your default downloads folder, you’ll need to change “~/Downloads” to the path to your downloads folder. You can get this by dragging the folder onto Terminal.

Now copy your consumer key, consumer secret, access token, and access token secret (ed: you can find all these on your new Twitter app’s page) into lib/config.rb (which you can open with Textedit), save it, and then copy and paste this line without pressing Enter:
bundle exec ruby bin/erase.rb
Drag your tweets folder onto Terminal and it should auto-complete the path to the folder. (ed note: this will end up looking like this: shame-eraser-master johnherman$ bundle exec ruby bin/erase.rb /Users/johnherman/Downloads/tweets)
Now hit Enter, and follow the instructions. (ed note: Dates can be entered in many formats, but this syntax is probably easiest: June 1st 2009. In any case, the script will ask you to confirm your date input before you proceed.

Good luck, and enjoy your new shame-free life on Twitter.

This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply