Skip to content

Allow admins to view & delete uploaded images (pict-rs) #2360

Closed

Description

@maltfield

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:

  1. View all of the files that all of the users have uploaded to their lemmy instance
  2. 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:

  1. The URL/filename of the image
  2. The URL of the comment in which the image appears
  3. The URL of the post in which image appears
  4. A hash of the image
  5. All (no filters; just return all of the images)

Moreover, the image results returned above should be able to be sorted:

  1. By date uploaded
  2. By number of views
  3. By size
  4. By number of references to the image (sum of comments and posts that include the image)
  5. By number of flags associated with the image (sum of comments and posts that included the image that were flagged)

Activity

  1. maltfield commented on Feb 7, 2024

    @maltfield
    Author

    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

  2. maltfield commented on Mar 4, 2024

    @maltfield
    Author
  3. Nutomic commented on Jul 28, 2025

    @Nutomic
    Member

    Available under /admin

  4. etymotic commented on Jul 28, 2025

    @etymotic

    Under /admin you 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.

  5. dessalines commented on Jul 28, 2025

    @dessalines
    Member

    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.

  6. etymotic commented on Jul 28, 2025

    @etymotic

    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.

  7. Nutomic commented on Jul 29, 2025

    @Nutomic
    Member

    The issue doesnt mention any of this. You can open a new one (after checking that it doesnt exist yet).

  8. etymotic commented on Jul 29, 2025

    @etymotic

    The issue doesnt mention any of this. You can open a new one (after checking that it doesnt exist yet).

    It is mentioned, I'll paste the relevant part of the original post below.

    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)
    
  9. dessalines commented on Jul 29, 2025

    @dessalines
    Member

    @etymotic let us know if you'd be willing to work on this, so we can create an issue and assign it to you.

  10. etymotic commented on Jul 29, 2025

    @etymotic

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions