Updated 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) -> boolCheck 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/
Returns (removed_symlinks, removed_real) counts.
#_remove_from_options
python
def _remove_from_options(name: str) -> boolRemove 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) -> boolRemove a profile entry from tokens.json. Returns True if found.
#do_delete_profile
python
def do_delete_profile(name: str, force: bool=False) -> intDelete a Claude Code profile and all associated data.
Returns a process exit code (0 = success).