We have modified the command to delete endpoint using name. RDFE does not allow duplicate endpoint name so used it as uniquely identifying the endpoint.