Is there a standard way to permanently delete an image from the revision history?

Whilst it is easy to permanently delete a Topic, I can’t see a standard way to permanently delete a specific image whilst simultaneously retaining the rest of the Topic.

The problem this creates is as follows:

  1. User posts confidential image
  2. Confidential image is deleted – but remains in revision history, and therefore in database

To adhere to confidentiality regulations, I need to be able to delete that image from the database. Currently I get the url of the image, hunt it down in the server, and delete it directly. This isn’t particularly fluid, and I don’t like the idea of deleting the image file, without cleaning up the references to in in the Database.

I could make a python script to automate the steps I take for deletion, simply giving the url of the image as an argument, but I’m wondering if maybe there is already a proper/standard way of doing this?

Actually it looks like this is done automatically if you delete the image, and it is not used anywhere else

When using a browser which has already viewed the image, I can still see the image in the revision history, but it is only a local copy made by the browser – the image is no longer on the server, and it cannot be seen by other users unless they have seen it previously.

1 Like

Hmm, are you sure? AFAIK you must remove the image from the post (i.e. delete the link from the markdown) and then wait until the image is orphaned and removed.

Can you please describe the exact steps you’re taking?

Hey Richard, you’re correct. I should have mentioned the waiting period. Mine is the default 48 hours

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.