this post was submitted on 17 Feb 2025
8 points (100.0% liked)

Lemmy Support

4733 readers
5 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

TLDR- Is there another/better way to purge communities from the database besides doing it one at a time from the webui?

I tried getting a list of communities with curl by adding subscribers_local=0 to the string since that's how they show up in the DB but it doesn't seem to be recognized at all, and the request returns all communities that meet the other criteria. That pretty much kills purging via API since I would have to do it one at a time and manually compile the list...Is there a better/faster/less manual way to somehow purge communities based on that criteria besides finding them from the webui and purging them one at a time? This is for hundreds of communities so any level of automation would help.

you are viewing a single comment's thread
view the rest of the comments
[–] FrostyTrichs@walledgarden.xyz 2 points 2 days ago

Lemmy has mangled that script a bit.

Lemmy seems to mangle a lot of links that aren't basic urls. SimpleX chat links break for some reason here too.

Thank you for the suggestions. At this point it seems the best option may be to just shutter this instance and start over with a fresh database instead of dealing with a bunch of nagging problems from previous experiments. I've done plenty of testing in production because for most of that time it was only me being affected by the consequences lol.