delete# MetricsLogger.delete(*key: Tuple[str, ...], key_error: bool = True) → None[source]# Deletes the given key from this metrics logger’s stats. Parameters: key (Tuple[str, ...]) – The key or key sequence (for nested location within self.stats), to delete from this MetricsLogger’s stats. key_error (bool) – Whether to throw a KeyError if key cannot be found in self. Raises: KeyError – If key cannot be found in self AND key_error is True.