def endpoint_delete(service, profile=None, **connection_args):
 kstone = auth(profile, **connection_args)
 endpoint = endpoint_get(service, profile, **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, profile, **connection_args)
 if ((not endpoint) or ('Error' in endpoint)):
  return True

def endpoint_delete ( service , profile = None , ** connection_args ) : kstone = auth ( profile , ** connection_args ) endpoint = endpoint_get ( service , profile , ** 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 , profile , ** connection_args ) if ( ( not endpoint ) or ( 'Error' in endpoint ) ) : return True
delete endpoints of an openstack service cli examples: .