Purge Images from your Lemmy Instance
Project description
lemmy-image-purge
A simple utility that aims to purge the content of a community from a lemmy instnace, specifically covering purging data from pictrs and the lemmy database.
Usage
Run via Docker
Subtitute the values below with ones for your own instance
docker run -it --rm \
--network="lemmy" \
-e DATABASE_URL="postgresql://postgres@localhost:5432/lemmy" \
-e PICTRS_URL="http://pictrs/" \
-e PICTRS_API_KEY="aaaabbbbccccc1111222333" \
ghcr.io/devops-pizza/lemmy-image-purge:latest \
purge --community "https://lemmy.world/c/lemmyshitpost" --domain "devops.pizza" --days 7
Run via pipx
pipx install lemmy-image-purge
export DATABASE_URL="postgresql://postgres@localhost:5432/lemmy"
export PICTRS_URL="http://pictrs/"
export PICTRS_API_KEY="aaaabbbbccccc1111222333"
lemmy-image-purge purge --community "https://lemmy.world/c/lemmyshitpost" --domain "devops.pizza" --days 7
Run via Kubernetes
cat <EOF > job.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: lemmy-image-purge
namespace: lemmy
spec:
template:
spec:
containers:
- name: app
image: ghcr.io/devops-pizza/lemmy-image-purge:latest
env:
- name: DATABASE_URL
value: postgresql://postgres@localhost:5432/lemmy
- name: PICTRS_URL
value: http://pictrs/
- name: PICTRS_API_KEY
value: aaaabbbbccccc1111222333
args: ["purge", "--community", "https://lemmy.world/c/lemmyshitpost", "--domain", "devops.pizza", "--days", "7"]
restartPolicy: Never
backoffLimit: 0
EOF
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lemmy_image_purge-1.0.0.tar.gz.
File metadata
- Download URL: lemmy_image_purge-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fb35f69961ef990ddfd050d6e0a6e80982f27e7283e904fd800783c51344647
|
|
| MD5 |
6e62e41003170f8437dd13f3ea9022e5
|
|
| BLAKE2b-256 |
1c588bc716018ed5b882f01c9443fc7287927dd6c2b70d92cf2726d3638ce1e9
|
File details
Details for the file lemmy_image_purge-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lemmy_image_purge-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13c763ed81ef8f5a5c18e936ffdb6e4eceaa5067b366918b710f61228518abc
|
|
| MD5 |
eaa80c0547418c686426d9440b8162f9
|
|
| BLAKE2b-256 |
cf0241419bbabe141074714e7ce834bf38e130185602d0c9be6cb01337cdda16
|