I save an image to an image field in DB. Then I save a new image to the same file. The new image is added to the File Manager and the old image file is not deleted. After a number of testing, there are many “old” image files, thus increasing the storage space.
- Why is the old image not replaced with the new image instead?
- Is there an option to delete the old one and add the new one?
- If not, what can I do to delete the old image every time I save a new image?
- How do I clean up the DB if I have many old images laying around?
