I have recently implemented a simple way of deleting redundant files on AWS when they are replaced.
1] I upgraded my legacy plan, so I could use database triggers.
2] I use backend workflows to detect a change to the image URL, and when it did, to delete the file at the ‘before change’ URL.
I hope this helps.