Repository navigation
Allow admins to view & delete uploaded images (pict-rs) #2360
Description
Requirements
- This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
- Please check to see if this request (or a similar one) already exists.
- It's a single feature. Please don't request multiple features in one issue.
Describe the feature you'd like
Requirements
- This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
- Please check to see if this request (or a similar one) already exists.
- It's a single feature. Please don't request multiple features in one issue.
Describe the feature you'd like
This is a request to implement a section of the Lemmy WUI where admins can:
- View all of the files that all of the users have uploaded to their lemmy instance
- Delete individual files (eg photos) that users have uploaded
Problem
Currently it's not possible in the Lemmy WUI for admins to delete files that users have uploaded.
This is not just an inconvenience. It's a legal risk to lemmy instane admins.
Legally, instance admins must respond to "GDPR Erasure Requests" from their users. That is, if a user sends them a request to delete some content (eg a photo), then they must delete it from their website within a reasonable timeframe. This law applies to any website operating anywhere in the world (not just to websites or businesses located in the EU) that has users who are residents of the EU (so it likely affects >90% of public lemmy instances with >100 active users).
The fines for this violation are commonly millions of euros or a percent of of revenue, whichever is higher.
Currently there is no way for lemmy admins to find and delete images that have been uploaded by users in the WUI.
Currently there are no lemmy-specific API endpoints for admins to delete images that have been uploaded by users.
Currently it is possible for admins to delete images that have been uploaded by users via the pict-rs API, but it is non-trivial (how the heck does one get the alias or delete_token anyway?), and there is no examples given in the lemmy documentation describing how to do this.
Solution
There should be a very straightforward way in the lemmy WUI for dmins to view & delete any files that have been uploaded by users.
Because this dataset is so large, there should be a search field in the admin WUI where admins can enter attributes about the image that will find the image -- and then they can delete the image after its found.
Admins should be able to find images by querying for, at least:
- The URL/filename of the image
- The URL of the comment in which the image appears
- The URL of the post in which image appears
- A hash of the image
- All (no filters; just return all of the images)
Moreover, the image results returned above should be able to be sorted:
- By date uploaded
- By number of views
- By size
- By number of references to the image (sum of comments and posts that include the image)
- By number of flags associated with the image (sum of comments and posts that included the image that were flagged)
Activity
maltfield commentedon Feb 7, 2024
See also this ticket to add a section to the Lemmy UI for users to be able to delete individual images without having to delete their account
maltfield commentedon Mar 4, 2024
Nutomic commentedon Jul 28, 2025
Available under
/adminetymotic commentedon Jul 28, 2025
Under
/adminyou can view a chronological list of uploaded images. You can't sort them, and it only shows 10 items at a time. This is extremely tedious.You can't view images uploaded by a specific user or quickly jump to a certain date.
This issue mentions sorting and filtering, so I think closing this issue is premature.
dessalines commentedon Jul 28, 2025
I have no idea how chronologically jumping to a certain date would work, we don't have that functionality anywhere in lemmy.
If someone wants to work on this tho, I'll re-open and assign it to you.
etymotic commentedon Jul 28, 2025
I'm just a user/admin, so I don't know either. Username's and timestamps are attached to each photo, so I just figure there must be a solution to this feature request.
In the absence of reopening it, the wontfix tag might be appropriate.
Nutomic commentedon Jul 29, 2025
The issue doesnt mention any of this. You can open a new one (after checking that it doesnt exist yet).
etymotic commentedon Jul 29, 2025
It is mentioned, I'll paste the relevant part of the original post below.
dessalines commentedon Jul 29, 2025
@etymotic let us know if you'd be willing to work on this, so we can create an issue and assign it to you.
etymotic commentedon Jul 29, 2025
@dessalines I'd love to but I don't have the prerequisite skills. I just just noticed the issue was marked closed despite not being addressed.
Have a good one.