This util deletes your historical tweets from a downloaded archive file.
No guarantee, no support, use it at your own risk.
- Apply to become a Twitter developer first. Once your Twitter developer account application is approved, You can create a new app and get its Consumer API keys and generate Access token. These keys are used to configure tweet.sh
- Obtain archived tweets by requesting to download your Twitter data.
You can extract
tweet.js
file from the downloaded .zip file. - Download
tweet.sh
from the forked repo. Configure it following its README.tweet.sh
requirescurl
,jq
,nkf
,openssl
. - Download
delete-tweets.sh
from this gist.chmod +x delete-tweets.sh
is recommended. - Install GNU date by running
brew install coreutils
if you decide to run this util on macOS.
Run command in your terminal:
delete-tweets.sh /path/to/tweet.js
Whenever you quit the task, or it crashes accidentally, run again and it should resume the task from last working entry.
- Change variable
KEEP_DAYS
to 365 indelete-tweets.sh
, if you want to keep tweets posted within recent one year. - Delete the file declared by
LAST_TWEET_FILE
, if you want to start over.