[−][src]Function twitter_privacy::clear_old_tweets
pub fn clear_old_tweets() -> Result<(), Errors>
Tries to erase old tweets for a user account
This method will load configuration from environment variables as described in the Readme file and interact with that user account via Twitter API to erase tweets older than a configured amount of days.
This of this method as a for comprehension with some side-effects when used in production
Impure
- Loads values from environment variables
- Multiple requests to Twitter API
Errors
- Configuration can't be loaded properly
- Errors while interacting with Twitter API