code: def endpoint_delete(service, region=None, profile=None, interface=None, **connection_args):
      '''
      Delete endpoints of an Openstack service
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt 'v2' keystone.endpoint_delete nova [region=RegionOne]
  
          salt 'v3' keystone.endpoint_delete nova interface=admin [region=RegionOne]
      '''
      kstone = auth(profile, **connection_args)
      endpoint = endpoint_get(service, region, profile, interface, **connection_args)
      if not endpoint or 'Error' in endpoint:
          return {'Error': 'Could not find any endpoints for the service'}
      kstone.endpoints.delete(endpoint['id'])
      endpoint = endpoint_get(service, region, profile, interface, **connection_args)
      if not endpoint or 'Error' in endpoint:
          return Truf endpoint_delete(service, region=None, profile=None, interface=None, **connection_args):
      '''
      Delete endpoints of an Openstack service
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt 'v2' keystone.endpoint_delete nova [region=RegionOne]
  
          salt 'v3' keystone.endpoint_delete nova interface=admin [region=RegionOne]
      '''
      kstone = auth(profile, **connection_args)
      endpoint = endpoint_get(service, region, profile, interface, **connection_args)
      if not endpoint or 'Error' in endpoint:
          return {'Error': 'Could not find any endpoints for the service'}
      kstone.endpoints.delete(endpoint['id'])
      endpoint = endpoint_get(service, region, profile, interface, **connection_args)
      if not endpoint or 'Error' in endpoint:
          return True
docs: Delete endpoints of an Openstack service
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt 'v2' keystone.endpoint_delete nova [region=RegionOne]
  
          salt 'v3' keystone.endpoint_delete nova interface=admin [region=RegionOne]