Delete CNAME. This is a helper call to delete_object.

    If record is not found, return True

    CLI Examples:

    .. code-block:: bash

        salt-call infoblox.delete_cname name=example.example.com
        salt-call infoblox.delete_cname canonical=example-ha-0.example.com

def delete_cname(name=None, canonical=None, **api_opts):
    '''
    Delete CNAME. This is a helper call to delete_object.

    If record is not found, return True

    CLI Examples:

    .. code-block:: bash

        salt-call infoblox.delete_cname name=example.example.com
        salt-call infoblox.delete_cname canonical=example-ha-0.example.com
    '''
    cname = get_cname(name=name, canonical=canonical, **api_opts)
    if cname:
        return delete_object(cname['_ref'], **api_opts)
    return True