apus reset

Reset local config/state (keeps the CLI installed).

apus reset
apus reset --dry-run
apus reset --scope config --yes --non-interactive
apus reset --scope config+creds+sessions --yes --non-interactive
apus reset --scope full --yes --non-interactive

Options

Scopes

Scope Removes Stops gateway first
config config file only no
config+creds+sessions config file, OAuth/credentials dir, canonical SQLite session history and its archive files yes
full state dir (including the shared SQLite database) plus workspace directories yes

config+creds+sessions and full stop a running managed gateway service before deleting state.

The sessions scope removes current and archived sessions, retained transcript generations, cold history, and session-owned artifacts from configured and discovered agent stores, including agents no longer in config. It keeps the per-agent database files because they also contain auth profiles, memory, and other agent state. Workspace files and auth profiles survive. There is no standalone --scope sessions option.

--dry-run lists the databases, session keys, transcript/archive counts, and owned archive files selected for removal without writing SQLite state. Legacy JSON/JSONL imports remain owned by Doctor; reset does not recursively delete session directories.

Notes

Related