{"id":13930221,"url":"https://github.com/hbish/delete-old-tweets","last_synced_at":"2025-07-10T17:31:34.779Z","repository":{"id":53460197,"uuid":"148167455","full_name":"hbish/delete-old-tweets","owner":"hbish","description":"nodejs script to delete old tweets","archived":false,"fork":false,"pushed_at":"2023-10-21T02:59:48.000Z","size":50,"stargazers_count":21,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T15:35:20.652Z","etag":null,"topics":["delete-old-tweets","delete-tweets","old-tweets","tweets","twitter","twitter-data"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hbish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-09-10T14:24:11.000Z","updated_at":"2024-07-03T12:06:53.000Z","dependencies_parsed_at":"2024-02-07T14:59:24.754Z","dependency_job_id":"7a896725-e9f2-419f-ba07-c4f222cf7f70","html_url":"https://github.com/hbish/delete-old-tweets","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hbish/delete-old-tweets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbish%2Fdelete-old-tweets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbish%2Fdelete-old-tweets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbish%2Fdelete-old-tweets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbish%2Fdelete-old-tweets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hbish","download_url":"https://codeload.github.com/hbish/delete-old-tweets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbish%2Fdelete-old-tweets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619027,"owners_count":23638394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delete-old-tweets","delete-tweets","old-tweets","tweets","twitter","twitter-data"],"created_at":"2024-08-07T18:05:16.358Z","updated_at":"2025-07-10T17:31:32.187Z","avatar_url":"https://github.com/hbish.png","language":"JavaScript","funding_links":[],"categories":["twitter"],"sub_categories":[],"readme":"# delete-old-tweets\n\nA simple utility script that deletes your old tweets based on a given cut off\ndate.\n\nMotivation for creating this utility is on my [blog post](https://hbish.com/deleting-old-tweets/).\n\nIf you found this to be useful, please give it a star.\n\n## 🛆 Read before proceeding\n\nDue to twitter's API\n[rate limit](https://help.twitter.com/en/rules-and-policies/twitter-limits),\nby default, a limit of 100 deletions has been set when you execute the script. There is also\na hard limit of 2400 updates to tweets per day. _Please be aware of the\nrate limits, otherwise your account may be suspended._\n\n## Installation\n\n- Tested on NodeJs v18.x\n- `npm install`\n\n## Quick Start\n\n- Request your twitter data from Twitter\n  [(link)](https://twitter.com/settings/your_twitter_data). You will\n  receive an email in your email with a download link to your data, this\n  may take a some time especially if you have a lot of twitter data.\n- You need a valid Twitter developer credentials in the form of a set of\n  consumer and access tokens/keys [(link)](https://apps.twitter.com/).\n  You will also need to grant write permission to your application.\n- Extract your twitter data and copy `data/tweets.js` into the scripts\n  working directory\n- Copy the sample `.env` file `cp .env.sample .env`\n- Edit the `.env` file and replace the placeholders with your twitter\n  app tokens/keys obtained earlier\n\n  ```\n  TWITTER_CONSUMER_KEY=**your key**\n  TWITTER_CONSUMER_SECRET=**your secret**\n  TWITTER_ACCESS_TOKEN_KEY=**your token key**\n  TWITTER_ACCESS_TOKEN_SECRET=**your token secret**\n  ```\n\n- Execute the script (below will delete 100 tweets before 2011-01-01)\n  - `node index.js -d 2011-01-01`\n    - `-d` - cutoff date in yyyy-mm-dd format\n    - `-n` - number of tweets to delete (optional, default to 100)\n- IDs of deleted tweets will be written to `deleted.js`\n- Rerun the script to continue the next batch of tweets\n\nTo see all of the scripts options, please run `node index.js -h`\n\n## Contributors\n\nOriginally authored by [@hbish](http://github.com/hbish)\n\nSpecial thanks to\n[Twitter for Node.js](https://www.npmjs.com/package/twitter) for the\nawesome twitter client.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhbish%2Fdelete-old-tweets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhbish%2Fdelete-old-tweets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhbish%2Fdelete-old-tweets/lists"}