Script to delete retweets using your Twitter archive. These are different from quote tweets. This script does not delete quote tweets.
This script does not delete the original tweet. It does remove retweets from your timeline.
WARNING: Retweets are removed from your timeline immediately upon running the script. Be sure this is what you want before you run it!
- Clone or download this repo
- Make a copy of the file
.envsample
called.env
at the root of thetwitter-archive-utilities
directory - Get your tokens and keys from Twitter by creating an app
- Add your tokens and keys to
.env
along with your username - In
.env
, set the max age (in days) of the retweets you want to keep and change the value ofRETWEETS_DELETE
totrue
- Request your archive from your Twitter settings page
- From the downloaded archive, copy the
tweets
directory (located in<archive>/data/js
) to the root of thetwitter-archive-utilities
directory - Open a terminal window
- Run
npm install
(first use only) - Run
node app.js
Inspired by Mike Pacific’s Node-Delete-Your-Tweets script.