'Deletes an existing image with the registry.
:param req: wsgi Request object
:param id:  The opaque internal identifier for the image
:returns: 200 if delete was successful, a fault if not. On
success, the body contains the deleted image
information as a mapping.'

@utils.mutating
def delete(self, req, id):

    try:
        deleted_image = self.db_api.image_destroy(req.context, id)
        LOG.info(_LI('Successfully    deleted    image    %(id)s'), {'id': id})
        return dict(image=make_image_dict(deleted_image))
    except exception.ForbiddenPublicImage:
        LOG.info(_LI('Delete    denied    for    public    image    %(id)s'), {'id': id})
        raise exc.HTTPForbidden()
    except exception.Forbidden:
        LOG.info(_LI("Access    denied    to    image    %(id)s    but    returning    'not    found'"), {'id': id})
        return exc.HTTPNotFound()
    except exception.ImageNotFound:
        LOG.info(_LI('Image    %(id)s    not    found'), {'id': id})
        return exc.HTTPNotFound()
    except Exception:
        LOG.exception((_LE('Unable    to    delete    image    %s') % id))
        raise
