Spaces:
Sleeping
Sleeping
| """brain detach — Remove the workspace runtime connection.""" | |
| import shutil | |
| import typer | |
| from brain.paths import get_workspace_dir | |
| from brain.utils.display import error, success | |
| def detach() -> None: | |
| """Remove the .brain/ workspace runtime. Does NOT delete project memory.""" | |
| workspace = get_workspace_dir() | |
| if not workspace.exists(): | |
| error("No workspace runtime found.") | |
| raise typer.Exit(code=1) | |
| shutil.rmtree(workspace) | |
| success("Workspace runtime removed.") | |