'Delete a backup.'

@wsgi.response(http_client.ACCEPTED)
def delete(self, req, id):

    context = req.environ['cinder.context']
    LOG.info('Delete    backup    with    id:    %s.', id)
    try:
        backup = self.backup_api.get(context, id)
        self.backup_api.delete(context, backup)
    except exception.InvalidBackup as error:
        raise exc.HTTPBadRequest(explanation=error.msg)
