> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argentos.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Uninstall ArgentOS

> How to remove ArgentOS from your machine. Covers macOS, with Linux and Windows guides coming soon.

## macOS

Run the uninstall script:

```bash theme={null}
curl -fsSL https://argentos.ai/uninstall.sh | bash -s --
```

This removes:

* `/Applications/Argent.app`
* Gateway, Redis, and monitoring LaunchAgents
* CLI wrappers (`argent`, `argentos`)
* Private Node.js runtime
* App UserDefaults

<Info>
  **Your data is preserved by default** — memory, configuration, and workspace files stay in `~/.argentos/`.
</Info>

### Full Removal (including data)

To also delete your memory database, config, logs, and workspace:

```bash theme={null}
curl -fsSL https://argentos.ai/uninstall.sh | bash -s -- --remove-data
```

This will ask you to type `DELETE` to confirm. To skip confirmation:

```bash theme={null}
curl -fsSL https://argentos.ai/uninstall.sh | bash -s -- --remove-data --force
```

### What Gets Removed

| Item                 | Path                                                       | Removed                   |
| -------------------- | ---------------------------------------------------------- | ------------------------- |
| Argent.app           | `/Applications/Argent.app`                                 | Yes                       |
| Gateway service      | `~/Library/LaunchAgents/ai.argent.gateway.plist`           | Yes                       |
| Redis service        | `~/Library/LaunchAgents/ai.argent.redis.plist`             | Yes                       |
| Curiosity monitor    | `~/Library/LaunchAgents/ai.argent.curiosity-monitor.plist` | Yes                       |
| CLI wrappers         | `~/bin/argent`, `~/bin/argentos`                           | Yes                       |
| Source checkout      | `~/argentos/`                                              | Yes                       |
| Private Node runtime | `~/.argentos/runtime/`                                     | Yes                       |
| App preferences      | UserDefaults `ai.argent.mac`                               | Yes                       |
| Config & memory      | `~/.argentos/`                                             | Only with `--remove-data` |
| Workspace            | `~/argent/`                                                | Only with `--remove-data` |

### What Is NOT Removed

<Warning>
  PostgreSQL, Redis, and Homebrew are not removed because they may be used by other applications. To remove them manually:

  ```bash theme={null}
  brew uninstall postgresql@17 pgvector redis
  ```
</Warning>

### Manual Removal

If you prefer to remove everything manually:

```bash theme={null}
# Stop services
osascript -e 'tell application "Argent" to quit'
launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.argent.gateway.plist
launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.argent.redis.plist

# Remove app and services
rm -rf /Applications/Argent.app
rm -f ~/Library/LaunchAgents/ai.argent.*.plist

# Remove CLI
rm -f ~/bin/argent ~/bin/argentos

# Remove source and runtime
rm -rf ~/argentos ~/.argentos/runtime

# Clear preferences
defaults delete ai.argent.mac

# Optional: remove all data
rm -rf ~/.argentos ~/.argent ~/argent
```

## Linux

*Coming soon.* The Linux uninstall will remove systemd user services, CLI wrappers, and optionally data. PostgreSQL and Redis system packages will not be removed.

## Windows

*Coming soon.* The Windows uninstall will remove the Scheduled Task, CLI wrappers, and optionally data. PostgreSQL and Memurai system services will not be removed.
