def delete_cached_image(self, image_id):
        path = self.get_image_filepath(image_id)
        with self.get_db() as db:
            delete_cached_file(path)
            db.execute("""DELETE FROM cached_images WHERE image_id = ?""",
                       (image_id, ))
            db.commit()
Set dynamic storage capabilities based on current
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/image_cache/drivers/sqlite.py/Driver.delete_cached_image--crossover with--dataset/ETHPy150Open openstack/glance_store/glance_store/capabilities.py/StoreCapability.set_capabilities