'Delete up to three v3 endpoint refs based on a legacy ref ID.'

@controller.v2_deprecated
def delete_endpoint(self, request, endpoint_id):

    self.assert_admin(request)
    deleted_at_least_one = False
    for endpoint in self.catalog_api.list_endpoints():
        if (endpoint['legacy_endpoint_id'] == endpoint_id):
            self.catalog_api.delete_endpoint(endpoint['id'], initiator=request.audit_initiator)
            deleted_at_least_one = True
    if (not deleted_at_least_one):
        raise exception.EndpointNotFound(endpoint_id=endpoint_id)
