ephemetoot is a Python command line tool for deleting old toots.
As Mastodon now has similar functionality built in, ephemetoot is now in maintenance mode - no new features will be added, only security updates.
You should have Python3 and pip installed, and an app access token on hand. More detail information is available in the docs
Install with pip:
pip install ephemetootCreate a config file:
ephemetoot --initDo a first run in --test mode:
ephemetoot --testFind out about other options:
ephemetoot --helpYou can also read the docs at ephemetoot.hugh.run
The initial ephemetoot script was based on this tweet-deleting script by @flesueur
ephemetoot relies heavily on the Mastodon.py package by @halcy
Looks like Gabriel Augendre had the same idea. You might prefer to use Gabriel's cleantoots instead.
You can use ephemetoot to delete Mastodon toots that are older than a certain number of days (default is 365). Toots can optionally be saved from deletion if:
- they are pinned; or
- they include certain hashtags; or
- they have certain visibility; or
- they are individually listed to be kept
ephemetoot is tested using pytest.
For bugs or other contributions, please check the contributing guide.
This project and all contributions are licensed under the GPL 3.0 or future version