hydromt_wflow.components.WflowConfigComponent.remove#

WflowConfigComponent.remove(*args: str, errors: str = 'raise') Any[source]#

Remove a config key and return its value.

Parameters:
  • key (str, tuple[str, ...]) – Key to remove from the config. Can be a dotted toml string when providing a list of strings.

  • errors (str, optional) – What to do if the key is not found. Can be “raise” (default) or “ignore”.

Return type:

The popped value, or raises a KeyError if the key is not found.