Skip to main content

Deletes old posts from fediverse accounts. Confirmed working with Mastodon, Pleroma (and Forks), Gotosocial, and Takahe

Project description

Fedinesia

Repo Docs CI Downloads

Checked with pysentry Secrets checked by gitleaks

Code style: ruff Version Wheel

AGPL

⚠️ BEWARE, THIS TOOL WILL DELETE SOME OF YOUR POSTS ON THE FEDIVERSE ⚠️

Fedinesia is a command line (CLI) tool to delete old statuses from Mastodon or Pleroma instances. It respects rate limits imposed by servers.

Install and run from PyPI

It's easy to install Fedinesia from PyPI using the following command:

pip install fedinesia

Once installed, Fedinesia can be started by typing fedinesia into the command line.

Configuration / First Run

Fedinesia will ask for all necessary parameters when run for the first time and store them in a config.json file in the current directory.

Podman / Docker Container

Fedinesia can also be run using Podman or Docker as follows:

podman run \
  --env AUDIT_LOG_FILE=/logging/audit.log \
  --env PAUSE_IN_SECONDS=300 \
  --replace \
  --volume ./config:/config \
  --volume ./logging:/logging \
  --name fedinesia \
  codeberg.org/marvinsmastodontools/fedinesia

Podman / Docker Environment Variables

  • PAUSE_IN_SECONDS (mandatory) This must be set to a positive integer. This value is the number of seconds to wait between successive runs of fedinesia.

  • AUDIT_LOG_FILE (optional) Full path to where audit log file should be written to. It is intended that logfiles will be written to /logging directory. No audit log file will be generated / updated if this value has not been set.

  • AUDIT_STYLE (optional) What style of audit log file to write. Possible options are PLAIN or CSV. Defaults to PLAIN. Has no effect if AUDIT_LOG_FILE has not been set.

  • LIMIT (optional) If set to a positive integer, will make fedinesia stop processing any further deletions once this number of statuses have been deleted in the current execution.

  • DRY_RUN (optional) If set to any value, e.g. DRY_RUN=true, will make fedinesia not actually delete any status. Statuses that would be deleted are shown instead.

  • PROGRESS_FILE (optional) If set to a filename, will store the progress of deleted statuses to that file. This is intended to be used together with the CONTINUE_PROGRESS variable. This allows fedinesia to process a large number of status deletions over multiple executions while keeping track of progress.

  • CONTINUE_PROGRESS (optional) If set to any value, e.g. CONTINUE_PROGRESS=true, will make fedinesia continue with deleting statuses from last successfully deleted status in reverse historical order. Setting this variable implies that PROGRESS_FILE has been set as well.

  • LOGGING_CONFIG (optional) Can be set to a filename containing logging configuration definition. Below is a sample of the logging config file I use during development:

  [[handlers]]
  sink = "sys.stdout"
  format = "{message}"
  level = "INFO"

  [[handlers]]
  sink = "/logging/dev-fedinesia-debug.log"
  rotation = "1 day"
  retention = 3
  level = "DEBUG"
  format = "{time} - {level} - {name} - {function}({line}) - {message}"
  colorize = "none"

Licensing

Fedinesia is licensed under the GNU Affero General Public License v3.0.

Supporting Fedinesia

There are a number of ways you can support Fedinesia:

  • Create an issue with problems or ideas you have with/for Fedinesia
  • Create a pull request if you are more of a hands-on person
  • You can buy me a coffee
  • You can send me small change in Monero to the address below:

Monero donation address

86ZnRsiFqiDaP2aE3MPHCEhFGTeiFixeQGJZ1FNnjCb7s9Gax6ZNgKTyUPmb21WmT1tk8FgM7cQSD5K7kRtSAt1y7G3Vp98nT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fedinesia-3.7.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fedinesia-3.7.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file fedinesia-3.7.3.tar.gz.

File metadata

  • Download URL: fedinesia-3.7.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fedinesia-3.7.3.tar.gz
Algorithm Hash digest
SHA256 3156eacb6d9a7d6027db0b1c04073e1938ec0ffde3785cb2f0b26fb790a8fa28
MD5 811bb9757efede895c958dc15d4f0179
BLAKE2b-256 53cf1d2b4103a75cf50af2e610423b2c5eed573d6387748c67c3598f488aadcf

See more details on using hashes here.

File details

Details for the file fedinesia-3.7.3-py3-none-any.whl.

File metadata

  • Download URL: fedinesia-3.7.3-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fedinesia-3.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bce50e3c6c385c2841f308f42c63e4b413c7e87b6ebe2b69e17e6c0eadbec387
MD5 be03f2e016a34dfa59361769731b4d4c
BLAKE2b-256 37e3c04d82a9a440218226c19a33e9c4f66035af89d7dc97f647e2ecf7d2c746

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page