Delete old tweets.
The Twitter API only gives access to your 3200 last tweets to third party apps, that's already a lot but we are talking about big ol accounts!
Here, tweets are accessed through your .zip archive and allows you to delete old tweets from your account.
This scripts definitely deletes some of your tweets!
- Set a maximum date to limit deletions to after a certain date.
- Tracks progress in a local log file for confirmation and in case app crashes / you want to start it up later.
- Request you Twitter archive (you might want to keep it safe, if you ever miss your tweets!)
- Create an app on Twitter the get your keys
- Download or clone the repo
- Rename
config.sample.js
byconfig.js
and set your keys and settings - OPTIONAL: In
config.js
Set themaxDate
, your tweets older than this date will be deletedโ If not provided, will use current date. - OPTIONAL: In
config.js
Set a file path for the log file. If not provided will createlog.json
- OPTIONAL: In
config.js
Set the arraysaveRegexp
for saving tweets. For example you want to save tweets with some hashtag or with mention of somebody - Copy
tweet.js
from your Twitter archive from step 1 in the same directory, or the path specified inconfig.js
$ npm i; npm start
๐ฅ