Delete your tweets using GitHub Actions

A few years ago I hacked together a bash script that you could use to backup and delete your tweets on a regular basis. For fun, I decided to do something similar using GitHub Actions.

tweet-delete doesn’t create backups, and deletes your tweets on a weekly basis. In addition, since the Twitter API only lets you get a maximum of 200 tweets per request, it won’t work if you have more than 200 tweets1. Many moons ago, I deleted all my tweets and started from scratch and since I don’t post more than 200 tweets in a week it works for me.

To use tweet-delete, clone the tweet-delete repo and edit tweet-delete.sh, replacing the twitter_user variable with your own Twitter user name.

Next, create an app on the Twitter Developer portal and add the following secrets to the GitHub repo using the names:

  • twitter_consumer_api_key
  • twitter_consumer_api_secret_key
  • twitter_access_token
  • twitter_access_token_secret

After committing your changes, a git push to the master branch will kick off the workflow2 and it’ll run automagically every Sunday at 23:453.


  1. I suspect it’ll delete the 200 most recent. 
  2. Delete the “Run when pushed to master” event from tweet-delete.ymlto run only on a schedule. 
  3. Configurable in the tweet-delete.yml file

Screwing Your Vocal Minority

What Twitter is saying, explicably — yet inexplicably from the 10,000 foot view — is that they like holes. They really, really just enjoy having holes in their product. And if you’re a user who doesn’t like to use products with holes? Well, you can use — nope, actually, you can’t. And also, if you happen to be amongst our most loyal and passionate users, fuck you.

Retweets Are Trash

A couple of months ago, I made a small tweak to my Twitter account that has changed my experience of the platform. It’s calmer. It’s slower. It’s less repetitive, and a little less filled with outrage. All of these improvements came about because I no longer see retweets.

I quite agree with this article.

Here are my top 3 tips to improving your Twitter experience:

  1. Follow less than 100 people — hell, even that seems too many. I follow 18 upstanding individuals.
  2. Turn off retweets for all the folk you follow. Retweets amplify the echo chamber!
  3. Occasionally revisit who you’re following and mute or unfollow accordingly.

old fruit pictures

i’m a bot tweeting random images from the pomological watercolor collection in the usda’s national agricultural library

Tag: twitter