An automated command line tool to delete tweets.
- Python 3.8+
-
Get a Twitter Developer Account and save your credentials. Save the following values and add them to key.json.
- consumer_key
- consumer_secret
- access_token
- access_token_secret
- user_id (this value is not present in your developer dashboard but instead can be obtained from your archive)
-
Rename your zipped archive to
archive.zip
and put it in root of the project. Don't unzip the file. -
Install required dependencies.
pip install -r requirements.txt
-
Delete tweets! (note: deleting too many at once may trigger Twitter for suspicious activity. Around 3000 should be safe.)
python ./TweetEraser.py <#-of-tweets-to-delete>
-
You can also remove your likes too.
python ./LikeRemover.py <#-of-likes-to-remove>