def delete_all_cached_images(self):
        deleted = 0
        with self.get_db() as db:
            for path in self.get_cache_files(self.base_dir):
                delete_cached_file(path)
                deleted += 1
            db.execute("""DELETE FROM cached_images""")
            db.commit()
        return deleted
Expect to filter version by accepted.
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/image_cache/drivers/sqlite.py/Driver.delete_all_cached_images--crossover with--dataset/ETHPy150Open heiskr/sagefy/server/test/test_routes_versions.py/test_version_accepted