MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / clear

Method clear

codewiki/cli/config_manager.py:312–322  ·  view source on GitHub ↗

Clear all configuration (file and keyring).

(self)

Source from the content-addressed store, hash-verified

310 except (KeyringError, Exception):
311 pass
312 # Also remove fallback credentials file
313 if CREDENTIALS_FILE.exists():
314 try:
315 CREDENTIALS_FILE.unlink()
316 except OSError:
317 pass
318 self._api_key = None
319
320 def clear(self):
321 """Clear all configuration (file and keyring)."""
322 # Delete API key from keyring
323 self.delete_api_key()
324
325 # Delete config file

Callers 3

setup_loggingFunction · 0.80
setup_module_loggingFunction · 0.80

Calls 1

delete_api_keyMethod · 0.95

Tested by

no test coverage detected