def delete(block_id):
    """Scheduling block detail resource."""
    _url = get_root_url()
    LOG.debug('Requested delete of SBI %s', block_id)
    try:
        DB.delete_sched_block_instance(block_id)
        response = dict(message='Deleted block: _id = {}'.format(block_id))
        response['_links'] = {
            'list': '{}/scheduling-blocks'.format(_url)
        }
        return response, HTTPStatus.OK
    except RuntimeError as error:
        return dict(error=str(error)), HTTPStatus.BAD_REQUEST
Scheduling block detail resource.