def delete_image_with_id(self, image_id):
        basename = self.storage_path + '/' + image_id
        body_path = basename + BODY_EXT
        try:
            os.remove(body_path)
        except Exception as e:
            self.log.warn('Unable to delete file: %s' % e)

        try:
            self.collection.remove(image_id)
        except Exception as e:
            self.log.warn('Unable to remove mongo record: %s' % e)
TODO: Docstring for delete_image_with_id
dataset/ETHPy150Open redhat-imaging/imagefactory/imgfac/MongoPersistentImageManager.py/MongoPersistentImageManager.delete_image_with_id