@areddy7021 the problem isn't that the delete logic does not work in principle.
The problem is, that a partially failed delete can leave behind files that are never cleaned up and might prevent files from being cleaned up in subsequent deletes.
Curator won't help you here either.
If you absolutely cannot upgrade, the best work-around I see would be to move to a fresh repository (different bucket or different sub-path) periodically and delete the old repository once you don't need any of the snapshots in it anymore.