In a support thread titled ‘Client side Optimised and Original Uploads: How can I get the ID of a given image?’, Tris20 seeks to identify image IDs for managing content (e.g., deletion under ‘right to be forgotten’). JammyDodger suggests checking the asset ID in the image URL when opened in a new tab. Tris20 tests this by copying, deleting, and re-uploading an image with the same ID, observing that Chrome may cache the image temporarily — confirming deletion works when viewed from a different browser or incognito session. Surprisingly, re-uploading with the original ID restores the image visibly, which Tris20 finds reassuring, noting the forum remains stable. The thread concludes with a positive outcome, highlighting browser caching behavior and successful image management via ID reuse.
If I need to delete or modify a certain image, for example right to be forgotten, then I need to be able to modify/delete/replace an image in the database.
Thanks for the pointer. Interestingly though when I take th URL:
And I copy the image as a buckup
and then delete the image
I can still see it on the web page. I’m going to rebuild discourse and see what happens but it’s wierd to me it can still deliver the image
Edit
Cancel that, when I impersonate a user in a different browser the image is gone. I assume chrome has a temp copy which is why I can still see it. Thankfully the image has been removed successfully, and the forum is still in one piece!
And if I add a new image with the previous image ID:
Then the image is restored in the browser which could not see it previously: