Delete tweets (or just replies or retweets) from your timeline, including tweets beyond the 3,200 tweet limit.
- python-twitter (
pip install python-twitter
) - python-dateutil (
pip install python-dateutil
)
- Create a new Twitter app at https://apps.twitter.com/
- Get the API key and secret of the app, and assign it to
API_KEY
andAPI_SECRET
respectively - Generate the access token and secret, and assign it to
ACCESS_TOKEN
andACCESS_TOKEN_SECRET
respectively - Set the permissions of your app to Read and Write
- Request the Twitter archive at https://twitter.com/settings/account
- Replace tweets.csv with the CSV file from the requested Twitter archive
- Usage:
deletetweets.py -h
- E.g., delete all retweets until July 1, 2013:
deletetweets.py -d "2013-07-01" -r "retweet"