docs: def clear_conditions(self, manager, condition_set, field_name=None, commit=True):
          """
          Clears conditions given a set of parameters.
  
          If ``commit`` is ``False``, the data will not be written to the database.
  
          Clear all conditions given a ConditionSet, and a field name:
  
          >>> switch = gargoyle['my_switch'] #doctest: +SKIP
          >>> condition_set_id = condition_set.get_id() #doctest: +SKIP
          >>> switch.clear_conditions(condition_set_id, 'percent') #doctest: +SKIP
  
          You can also clear all conditions given a ConditionSet:
  
          >>> switch = gargoyle['my_switch'] #doctest: +SKIP
          >>> condition_set_id = condition_set.get_id() #doctest: +SKIP
          >>> switch.clear_conditions(condition_set_id) #doctest: +SKIP
          """
          condition_set = manager.get_condition_set_by_id(condition_set)
  
          namespace = condition_set.get_namespace()
  
          if namespace not in self.value:
              return
  
          if not field_name:
              del self.value[namespace]
          elif field_name not in self.value[namespace]:
              return
          else:
              del self.value[namespace][field_name]
  
          if commit:
              self.save()