claudewheel v0.15.1 /claudewheel.profile_ops
Edit
On this page

Profile lifecycle operations (delete, etc.) for claudewheel.

#claudewheel.profile_ops

#claudewheel.profile_ops

Delete profiles and clean up their dirs, tokens, and options.

#_is_profile_running

python
def _is_profile_running(name: str) -> bool

Check if a profile has active sessions by scanning its sessions/ dir for PID files.

#_remove_profile_dir

python
def _remove_profile_dir(name: str) -> tuple[int, int]

Remove ~/.claudewheel/profiles//, handling symlinks safely.

Returns (removed_symlinks, removed_real) counts.

#_remove_from_options

python
def _remove_from_options(name: str) -> bool

Remove a profile from options.json values list and metadata.

Returns True if the profile was found and removed.

#_remove_from_tokens

python
def _remove_from_tokens(name: str) -> bool

Remove a profile entry from tokens.json. Returns True if found.

#do_delete_profile

python
def do_delete_profile(name: str, force: bool=False) -> int

Delete a Claude Code profile and all associated data.

Returns a process exit code (0 = success).