code: def delete(self, **kw):
          
          delete_by = []
          for field, val in kw.items():
              if val is not None:
                  delete_by.append(field)
          
          self.items[:] = [route for route in self.items
                           if not all(route.get(field) == kw.get(field)
                                      for field in delete_by)]
docs: Delete a policy route from the engine. You can delete using a
          single field or multiple fields for a more exact match.
          Use a keyword argument to delete a route by any valid attribute.
          
          :param kw: use valid Route keyword values to delete by exact match