@@ -62,13 +62,15 @@ rm -f ~/.codex/multi-auth/openai-codex-accounts.json
6262rm -f ~ /.codex/multi-auth/openai-codex-flagged-accounts.json
6363rm -f ~ /.codex/multi-auth/quota-cache.json
6464rm -rf ~ /.codex/multi-auth/logs/codex-plugin
65+ rm -f ~ /.codex/multi-auth/logs/audit.log ~ /.codex/multi-auth/logs/audit.* .log
6566rm -rf ~ /.codex/multi-auth/cache
6667# Override-root cleanup examples (if overrides are set):
6768[ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -f " $CODEX_MULTI_AUTH_DIR /settings.json"
6869[ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -f " $CODEX_MULTI_AUTH_DIR /openai-codex-accounts.json"
6970[ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -f " $CODEX_MULTI_AUTH_DIR /openai-codex-flagged-accounts.json"
7071[ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -f " $CODEX_MULTI_AUTH_DIR /quota-cache.json"
7172[ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -rf " $CODEX_MULTI_AUTH_DIR /logs/codex-plugin"
73+ [ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -f " $CODEX_MULTI_AUTH_DIR /logs/audit.log" " $CODEX_MULTI_AUTH_DIR /logs/audit." * .log
7274[ -n " ${CODEX_MULTI_AUTH_DIR:- } " ] && rm -rf " $CODEX_MULTI_AUTH_DIR /cache"
7375[ -n " ${CODEX_MULTI_AUTH_CONFIG_PATH:- } " ] && [ -f " $CODEX_MULTI_AUTH_CONFIG_PATH " ] && rm -f " $CODEX_MULTI_AUTH_CONFIG_PATH "
7476```
@@ -81,6 +83,8 @@ Remove-Item "$HOME\.codex\multi-auth\openai-codex-accounts.json" -Force -ErrorAc
8183Remove-Item "$HOME\.codex\multi-auth\openai-codex-flagged-accounts.json" -Force -ErrorAction SilentlyContinue
8284Remove-Item "$HOME\.codex\multi-auth\quota-cache.json" -Force -ErrorAction SilentlyContinue
8385Remove-Item "$HOME\.codex\multi-auth\logs\codex-plugin" -Recurse -Force -ErrorAction SilentlyContinue
86+ Remove-Item "$HOME\.codex\multi-auth\logs\audit.log" -Force -ErrorAction SilentlyContinue
87+ Get-ChildItem "$HOME\.codex\multi-auth\logs" -Filter "audit.*.log" -ErrorAction SilentlyContinue | Remove-Item -Force -ErrorAction SilentlyContinue
8488Remove-Item "$HOME\.codex\multi-auth\cache" -Recurse -Force -ErrorAction SilentlyContinue
8589# Override-root cleanup examples (if overrides are set):
8690if ($env:CODEX_MULTI_AUTH_DIR) {
@@ -99,6 +103,9 @@ if ($env:CODEX_MULTI_AUTH_DIR) {
99103 )) {
100104 Remove-Item (Join-Path $env:CODEX_MULTI_AUTH_DIR $relativePath) -Recurse -Force -ErrorAction SilentlyContinue
101105 }
106+
107+ Remove-Item (Join-Path $env:CODEX_MULTI_AUTH_DIR "logs\audit.log") -Force -ErrorAction SilentlyContinue
108+ Get-ChildItem (Join-Path $env:CODEX_MULTI_AUTH_DIR "logs") -Filter "audit.*.log" -ErrorAction SilentlyContinue | Remove-Item -Force -ErrorAction SilentlyContinue
102109}
103110if ($env:CODEX_MULTI_AUTH_CONFIG_PATH) { Remove-Item "$env:CODEX_MULTI_AUTH_CONFIG_PATH" -Force -ErrorAction SilentlyContinue }
104111```
0 commit comments