Hi, I’ve set up a simple frontend form where users set an image with the image filed. Users can also change the image. Everything works fine except when the user changes the image, the old image remains in the media library.
Is there any way of deleting the old image once the user sets a new one?
PS I have the library option set to ‘Uploaded to post’.
Ok apparently this is normal behaviour. Although not quite the best ux. Nevertheless here is a workaround I found using the acf update value function.
https://support.advancedcustomfields.com/forums/topic/deleting-images-from-media-gallary/