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

# moorcheh down

> Stop and remove Moorcheh runtime containers.

## Overview

Stops Moorcheh Docker containers started by `moorcheh up`. Your data in `~/.moorcheh/data` is **not** deleted.

## Synopsis

```bash theme={null}
moorcheh down [options]
```

## Options

| Flag                | Description                                                                                                     |
| ------------------- | --------------------------------------------------------------------------------------------------------------- |
| *(none)*            | If config uses **openai/cohere**: stop server only. If **ollama**: stop server + `moorcheh-ollama` when running |
| `--use-host-ollama` | Stop **only** the Moorcheh server container; leave `moorcheh-ollama` running if present                         |
| `--bundled-ollama`  | Same as default — full compose teardown including bundled Ollama                                                |

<Note>
  You cannot use `--bundled-ollama` and `--use-host-ollama` together (exit code `1`).
</Note>

<Note>
  `--use-host-ollama` does **not** stop Ollama running on your host (outside Docker). It only skips stopping the `moorcheh-ollama` container.
</Note>

## Examples

```bash theme={null}
# Stop everything (default)
moorcheh down

# Stop server only — keep moorcheh-ollama container if it was started
moorcheh down --use-host-ollama
```

## Output

Docker compose progress may print to stdout/stderr, for example:

```
Container moorcheh-onprem-server  Stopping
Container moorcheh-onprem-server  Removed
Container moorcheh-ollama  Stopping
Container moorcheh-ollama  Removed
```

No JSON output. After `moorcheh down`, `moorcheh status` fails until you run `moorcheh up` again.

## Exit codes

| Code | Meaning                                   |
| ---- | ----------------------------------------- |
| `0`  | Containers stopped                        |
| `1`  | Conflicting flags or Docker compose error |

## Related

* [moorcheh up](/on-prem/cli/runtime/up)
* [moorcheh status](/on-prem/cli/runtime/status)
