MCPcopy Create free account
hub / github.com/modelscope/modelscope / delete_credential

Function delete_credential

modelscope/utils/test_utils.py:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def delete_credential():
39 path_credential = expanduser(DEFAULT_CREDENTIALS_PATH)
40 shutil.rmtree(path_credential, ignore_errors=True)
41 try:
42 from modelscope_hub.config import get_default_config
43 get_default_config().clear_token()
44 except Exception:
45 pass
46
47
48def test_level():

Calls 1

get_default_configFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…