-
-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add admin API endpoint to delete or purge images from pict-rs #5563
Comments
Oh I guess when we removed delete tokens, we removed this ability. We already have the |
yeah, and also an explicit purge endpoint would be good for certain types of media where you want to be sure that there are no other aliases keeping it alive |
Purge can be a boolean parameter for the admin delete endpoint. |
There currently isn't one, only a |
- Also moving the list media endpoints, since these can go under a common heading. - Fixes #5563
Requirements
Is your proposal related to a problem?
Admins currently have to resort to calling the pict-rs API directly to purge images or delete aliases.
Describe the solution you'd like.
The simplest solution for the time being would be to provide an API that allows entering arbitrary pict-rs links and have Lemmy translate this into pict-rs delete/purge calls.
Both deletion and purge should be available as separate options, as it may be desirable to use them in different situations.
For the UI-side, this could be as simple as having a text input with a submit button.
Describe alternatives you've considered.
Make pict-rs directly accessible to all site admins.
Additional context
No response
The text was updated successfully, but these errors were encountered: