An open API service indexing awesome lists of open source software.

https://github.com/hpedrorodrigues/twitter-cleaner

Automatically delete tweets, retweets, and favorites from your timeline.
https://github.com/hpedrorodrigues/twitter-cleaner

Last synced: 8 months ago
JSON representation

Automatically delete tweets, retweets, and favorites from your timeline.

Awesome Lists containing this project

README

          

# Twitter Cleaner

Automatically delete tweets, retweets, and favorites from your timeline.

## Usage

### Authentication

This project uses the OAuth 1.0 API, and as such requires api keys to authenticate itself against the Twitter API.

In order to generate those API keys, you'll need to create a new standalone [twitter app][twitter-new-app].

> Note: Please, make sure you change the authentication settings and enable the OAuth 1.0 API with "Read and Write" access.

### Run

**Please, make sure you really want to delete all your tweets before running the available commands below**.

- You can run this project directly on your machine with the following commands:

```bash
brew install hpedrorodrigues/tools/twitter-cleaner

# providing CLI flags
twitter-cleaner \
-consumer-key \
-consumer-secret \
-access-token \
-access-token-secret

# providing environment variables
export TWITTER_CONSUMER_KEY=
export TWITTER_CONSUMER_SECRET=
export TWITTER_ACCESS_TOKEN=
export TWITTER_ACCESS_TOKEN_SECRET=

twitter-cleaner
```

- You can also run this project using the available docker image as below:

```bash
# providing CLI flags
docker run ghcr.io/hpedrorodrigues/twitter-cleaner \
-consumer-key \
-consumer-secret \
-access-token \
-access-token-secret

# providing environment variables
docker run \
-e TWITTER_CONSUMER_KEY= \
-e TWITTER_CONSUMER_SECRET= \
-e TWITTER_ACCESS_TOKEN= \
-e TWITTER_ACCESS_TOKEN_SECRET= \
ghcr.io/hpedrorodrigues/twitter-cleaner
```

[twitter-new-app]: https://developer.twitter.com/apps/new