A node script for tidy up your Twitter timeline. All Tweets that are older than 3 months will be deleted every night.
- nodejs > 12
- Clone the repo
git clone https://github.com/lukasleitsch/tidy-twitter
- Jump into the folder
cd tidy-twitter
- Run
npm install
- Create a new Twitter app
- Copy
config.example.js
intoconfig.js
- Add the application settings and the access token of your new twitter app into the
config.js
(This example works on Uberspace)
30 0 * * * node ~/tidy-twitter/index.js > /dev/null 2>&1
Every night at 00:30 the cronjob runs the script and tidy up your Twitter timeline.
The Twitter API is really special. Tidy Twitter cannot delete all old tweets because the API has some limits. For deleting really old tweets you can use Twitter Archive Eraser.